diff options
| author | Milian Wolff <[email protected]> | 2018-10-29 16:21:26 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2018-11-09 17:51:30 +0100 |
| commit | 825e48c4e942e3cbdab1b75c04b8c014867d66ab (patch) | |
| tree | 1dfe83deeb5d378f58c4d327633b059928ba2b6e /libdwelf/libdwelf.h | |
| parent | 4789e0fb92b03c3d8de548489c871d17f8f35cd0 (diff) | |
Also find CFI in sections of type SHT_X86_64_UNWIND
On my system with g++ (GCC) 8.2.1 20180831 with GNU gold (GNU Binutils
2.31.1) 1.16, the .eh_frame section does not have type PROGBITS
but rather is using X86_64_UNWIND nowadays:
```
$ echo "int main(){ return 0; }" > test.c
$ gcc test.c
$ readelf --sections a.out | grep .eh_frame
[14] .eh_frame X86_64_UNWIND 0000000000000670 00000670
[15] .eh_frame_hdr X86_64_UNWIND 0000000000000724 00000724
```
Without this patch, libdw refuses to use the available unwind
information, leading to broken backtraces while unwinding. With the
patch applied, unwinding works once more in such situations.
Signed-off-by: Milian Wolff <[email protected]>
Signed-off-by: Mark Wielaard <[email protected]>
Tested-by: Milian Wolff <[email protected]>
Diffstat (limited to 'libdwelf/libdwelf.h')
0 files changed, 0 insertions, 0 deletions
