[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/31734] [binutils, readelf] dwarf4 .debug_str_offsets secti
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug binutils/31734] [binutils, readelf] dwarf4 .debug_str_offsets section printed incorrectly |
Date: |
Wed, 15 May 2024 07:45:04 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=31734
--- Comment #5 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom de Vries <vries@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7e4f1f4bc7ffe26524a6eb0685bd22863cdfde1e
commit 7e4f1f4bc7ffe26524a6eb0685bd22863cdfde1e
Author: Tom de Vries <tdevries@suse.de>
Date: Wed May 15 09:45:55 2024 +0200
[binutils/readelf] Fix printing of dwarf4 .debug_str_offsets.dwo
When compiling a hello world with dwarf4 split dwarf:
...
$ gcc -gdwarf-4 -gsplit-dwarf hello.c -save-temps -dA
...
we have in a-hello.s these three initial entries in .debug_str_offsets:
...
.section .debug_str_offsets.dwo,"e",@progbits
.4byte 0 // indexed string 0x0: short int
.4byte 0xa // indexed string 0x1: /home/vries/binutils
.4byte 0x1f // indexed string 0x2: main
...
but "readelf -ws a.out" starts at the third entry:
...
Contents of the .debug_str_offsets.dwo section (loaded from a-hello.dwo):
Length: 0x30
Index Offset [String]
0 00000000 main
...
This is a regression since commit 407115429b3 ("Modified changes for
split-dwarf and dwarf-5."), which introduced a variable
debug_str_offsets_hdr_len in display_debug_str_offsets.
Fix this by setting display_debug_str_offsets to 0 for the dwarf4 case.
PR 31734
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/31734] New: [binutils, readelf] dwarf4 .debug_str_offsets section printed incorrectly, vries at gcc dot gnu.org, 2024/05/13
- [Bug binutils/31734] [binutils, readelf] dwarf4 .debug_str_offsets section printed incorrectly, vries at gcc dot gnu.org, 2024/05/13
- [Bug binutils/31734] [binutils, readelf] dwarf4 .debug_str_offsets section printed incorrectly, vries at gcc dot gnu.org, 2024/05/13
- [Bug binutils/31734] [binutils, readelf] dwarf4 .debug_str_offsets section printed incorrectly, amodra at gmail dot com, 2024/05/13
- [Bug binutils/31734] [binutils, readelf] dwarf4 .debug_str_offsets section printed incorrectly, vries at gcc dot gnu.org, 2024/05/14
- [Bug binutils/31734] [binutils, readelf] dwarf4 .debug_str_offsets section printed incorrectly,
cvs-commit at gcc dot gnu.org <=
- [Bug binutils/31734] [binutils, readelf] dwarf4 .debug_str_offsets section printed incorrectly, vries at gcc dot gnu.org, 2024/05/15