[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug default/24249] Section offsets not monotonically increasing



https://sourceware.org/bugzilla/show_bug.cgi?id=24249

--- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 11629
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11629&action=edit
dwz-0.12-ignore-nobits.patch

Using this (
https://build.opensuse.org/package/view_file/openSUSE:Factory/dwz/dwz-0.12-ignore-nobits.patch
) patch, we get:
...
$ gcc hello.c -g -fuse-ld=gold -Wl,--gdb-index
$ dwz a.out 
$ readelf -S a.out | grep '[[]' | egrep -C1  'Offset|\.gdb_index'
  [Nr] Name              Type             Address           Offset
  [ 0]                   NULL             0000000000000000  00000000
--
  [31] .debug_str        PROGBITS         0000000000000000  00001a11
  [32] .gdb_index        PROGBITS         0000000000000000  00003390
  [33] .debug_ranges     PROGBITS         0000000000000000  000020d0
...

So, the patch allows dwz to handle the input. Note that the section offsets in
the dwz output are still not monotonically increasing.

-- 
You are receiving this mail because:
You are on the CC list for the bug.