https://sourceware.org/bugzilla/show_bug.cgi?id=29498
Bug ID: 29498 Summary: Is it expected that eu-strip strips .note.GNU-stack Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: tools Assignee: unassigned at sourceware dot org Reporter: jpalus at fastmail dot com CC: elfutils-devel at sourceware dot org Target Milestone: --- Accidentally we've started to strip crt*.o files produced by glibc and were surprised by the fact that eu-strip gets rid of .note.GNU-stack section resulting in incorrect linking. $ gcc -c test.c -o test.o $ readelf -S test.o|grep GNU-stack [ 5] .note.GNU-stack PROGBITS 0000000000000000 00000074 $ eu-strip test.o $ readelf -S test.o|grep GNU-stack (empty) I see following comment in strip.c: > - special sections named ".comment" and ".note" are kept https://sourceware.org/git/?p=elfutils.git;a=blob;f=src/strip.c;h=452b12796dd3b7ff3a46d13a2bfb9aa0f5c93ac9;hb=HEAD#l1361 The question is whether observed behavior is expected or rather .note.GNU-stack should be kept? -- You are receiving this mail because: You are on the CC list for the bug.