[PATCH] elf: Get the real kept section

Hans-Peter Nilsson hp@axis.com
Fri Nov 27 13:49:13 GMT 2020


> From: "H.J. Lu" <hjl.tools@gmail.com>
> Date: Fri, 27 Nov 2020 14:31:32 +0100

> On Thu, Nov 26, 2020 at 10:14 PM Hans-Peter Nilsson <hp@axis.com> wrote:
> > 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:
> > pr26936c.s:
> ^^^^^^^^^^^^^^^^^
> 
> Why is there no directory name?

I have no clue.

> > File name                            Line number    Starting address    View    Stmt
> > pr26936c.s                                     6             0x10054               x
> > pr26936c.s                                     -             0x10056
> > ------
> >
> > Would you please have a look?  Thanks.
> >
> 
> I can't reproduce.

How odd.  Can you please tell *your* system and exact build steps?

brgds, H-P


More information about the Binutils mailing list