[PATCH] elf: Get the real kept section

Hans-Peter Nilsson hp@axis.com
Fri Nov 27 06:14:29 GMT 2020


> From: "H.J. Lu via Binutils" <binutils@sourceware.org>
> Date: Wed, 25 Nov 2020 14:15:11 +0100

> 	PR ld/26936
> 	* testsuite/ld-elf/pr26936.d: New file.
> 	* testsuite/ld-elf/pr26936a.s: Likewise.
> 	* testsuite/ld-elf/pr26936b.s: Likewise.
> 	* testsuite/ld-elf/pr26936c.s: Likewise.

Ever since that was committed, I see, for a
--target=cris-axis-linux-gnu cross on a Debian 9 x86_64
with 'CC=gcc -O2 -m32':

Running /x/hpautotest-binutils/bsrc/src/ld/testsuite/ld-elf/elf.exp ...
FAIL: ld-elf/pr26936

And at 647cebce12 (i.e. containing Alan's fix), the ld.log has:
------
extra regexps in /x/hpautotest-binutils/bsrc/src/ld/testsuite/ld-elf/pr26936.d starting with "^CU: .*/pr26936c.s:$"
EOF from tmpdir/dump.out
FAIL: ld-elf/pr26936
------

dump.out:
------
Contents of the .debug_line section:

pr26936a.s:
File name                            Line number    Starting address    View    Stmt
pr26936a.s                                     6             0x10054               x
pr26936a.s                                     -             0x10056


pr26936b.s:
File name                            Line number    Starting address    View    Stmt
pr26936b.s                                    17             0x10056               x
pr26936b.s                                     -             0x10058

pr26936b.s                                    23             0x10054               x
pr26936b.s                                     -             0x10056


pr26936c.s:
File name                            Line number    Starting address    View    Stmt
pr26936c.s                                     6             0x10054               x
pr26936c.s                                     -             0x10056
------

Would you please have a look?  Thanks.

brgds, H-P


More information about the Binutils mailing list