RFC: Should .strtab and .shstrtab sections have the SHF_STRINGS flag ?
Nick Clifton
nickc@redhat.com
Tue Apr 12 13:28:00 GMT 2016
More information about the Binutils mailing list
Tue Apr 12 13:28:00 GMT 2016
- Previous message (by thread): [PATCH] [ARC] Fix setting private flags when parsing .cpu.
- Next message (by thread): RFC: Should .strtab and .shstrtab sections have the SHF_STRINGS flag ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Guys, Should the ELF .strtab and .shstrtab sections be allowed to have the SHF_STRINGS flag set ? The Solaris linker currently does this, and I am wondering whether it would be a good thing for our linker to do the same. The logic of the change is that both of these sections do contain nul terminated strings, so setting the flag bit makes sense. (It would also mean that we could add an option to the strings program to only dump those sections with the SHF_STRINGS flag bit set, thus possibly reducing the amount of noise produced). The counter argument as I see it, is that the current ELF spec says that these sections do not have any flag bits set (.shstrtab) or just the SHF_ALLOC bit (.strtab, when it is in a loadable segment). But the SHF_STRINGS bit is an extension to the ELF specification, so naturally its use would not be described in the spec. What worries me though is whether a .strtab or .shstrtab section with the SHF_STRINGS flag bit set would be considered to be non-conforming by some other tool. Thoughts ? Cheers Nick
- Previous message (by thread): [PATCH] [ARC] Fix setting private flags when parsing .cpu.
- Next message (by thread): RFC: Should .strtab and .shstrtab sections have the SHF_STRINGS flag ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list