This is the mail archive of the gdb@sourceware.org mailing list for the GDB 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]

Re: working with split debug files and sectionless ELFs


On Fri, 14 Oct 2011 19:05:46 +0200, Mike Frysinger wrote:
> build-id is a section. my ELF has no sections.  i'm back where i started :).

build-id is in a note being both a section and a segment.  GDB currently reads
it as a section but this can be changed.

Program Headers:
  Type           Offset   VirtAddr           PhysAddr           FileSiz  MemSiz   Flg Align
[...]
  NOTE           0x000254 0x0000000000400254 0x0000000000400254 0x000044 0x000044 R   0x4
[...]
Notes at offset 0x00000274 with length 0x00000024:
  Owner         Data size       Description
  GNU           0x00000014      NT_GNU_BUILD_ID (unique build ID bitstring)

It was designed by Roland McGrath exactly this way so that in all cases of
debug info stripping build-id remains in the main executable.  Otherwise
build-id would be useless.


Thanks,
Jan


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