[Bug c/107971] linking an assembler object creates an executable stack

2022-12-05 Thread amonakov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107971 Alexander Monakov changed: What|Removed |Added CC||amonakov at gcc dot gnu.org ---

[Bug c/107971] linking an assembler object creates an executable stack

2022-12-05 Thread contact--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107971 --- Comment #4 from Alexander Pick --- Thanks a lot for the explanation. Do you think that it is worth reporting it to binutils as the text in the link also says that there should be a warning unless the option to have an executable stack is

[Bug c/107971] linking an assembler object creates an executable stack

2022-12-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107971 --- Comment #3 from Andrew Pinski --- https://sourceware.org/binutils/docs-2.39/ld/Options.html#index-_002d_002dwarn_002dexecstack ``` Note: ELF format input files specify that they need an executable stack by having a .note.GNU-stack section

[Bug c/107971] linking an assembler object creates an executable stack

2022-12-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107971 --- Comment #2 from Andrew Pinski --- You can use the assembler note to communicate to the linker that the assembly code does not use executable stack. This is all documented in the linker documentation and is not part of gcc documentation.

[Bug c/107971] linking an assembler object creates an executable stack

2022-12-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107971 Andrew Pinski changed: What|Removed |Added Resolution|--- |WONTFIX Status|UNCONFIRMED