This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

.gnu.build.attributes does not seem to be an ELF notes section


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]