https://sourceware.org/bugzilla/show_bug.cgi?id=33851
--- Comment #9 from Alan Modra <amodra at gmail dot com> --- In comment #4 I said: > Despite SHT_NOTE being correct I've been thinking about this issue and I'm now not sure the above is right. There may have been too much focus on the name of the section rather than its function. .note.GNU-stack differs from other note sections - it has zero size, and thus none of the entries that SHT_NOTE sections have as specified in the sysV ELF ABI, instead conveying information via its presense and its sh_flags, The section itself does not "hold information". Yes, I recognize that we must allow zero size for some other sections that the spec says "hold information", but for example a zero size SHT_RELA in a relocatable object could be completely removed without losing information. - it doesn't result in a PT_NOTE program header in a final linked object as other SHT_NOTE sections do. BTW, .note.GNU-split-stack and .note.GNU-no-split-stack are similar to .note.GNU-stack in that they are emitted by gcc as zero size SHT_PROGBITS. -- You are receiving this mail because: You are on the CC list for the bug.
