This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
.gnu.build.attributes does not seem to be an ELF notes section
- From: "Ian Lance Taylor via binutils" <binutils at sourceware dot org>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Thu, 5 Dec 2019 20:12:02 -0800
- Subject: .gnu.build.attributes does not seem to be an ELF notes section
- Reply-to: Ian Lance Taylor <iant at google dot com>
Hi, on my Fedora 31 system I'm seeing that when I build a program with
GCC the program is built with a .gnu.build.attributes section. This
section has type SHT_NOTE but the format does not seem to be that of
an ELF notes section. When I run "readelf --notes program" I get
Displaying notes found in: .gnu.build.attributes
Owner Data size Description
(NONE) 0x00000000 Unknown note type: (0x00000000)
(NONE) 0x00000000 Unknown note type: (0x00000000)
readelf: ./hello: Warning: note with invalid namesz and/or descsz
found at offset 0x18
readelf: ./hello: Warning: type: 0x401040, namesize: 0x00401040,
descsize: 0x00000000, alignment: 4
What's up with this? If a section has type SHT_NOTE, it seems to me
that it should follow the standard ELF note format.
I can't find any discussion of this, but I could easily have missed
something. Am I missing some part of the plan here? Do we just need
to update readelf and every single other ELF note reader?
Thanks.
Ian