https://sourceware.org/bugzilla/show_bug.cgi?id=16744
Bug ID: 16744 Summary: '-z noexecstack' does not add .note.GNU-stack for relocatables Product: binutils Version: 2.24 Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: dh.herrmann at gmail dot com Hi I use the following two lines to convert a binary file into an object file: > > ld -r -o file.o -z noexecstack --format=binary file.bin > objcopy --rename-section .data=.rodata,alloc,load,readonly,data,contents > file.o > That used to work well until someone reported that recent binutils versions no longer honor the "-z noexecstack" flag in this example. I can do a bisect if needed, all I know is that it doesn't work with >=2.23. As a workaround, adding '--section-start=.note.GNU-stack=0' works, but isn't that what "-z noexecstack" is supposed to do in that case? If that change was intentional, what am I supposed to pass to "ld" with "--format=binary" to mark it as not requiring an executable stack? Thanks David -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils