[PATCH] elf: Get the real kept section
H.J. Lu
hjl.tools@gmail.com
Fri Nov 27 13:54:59 GMT 2020
On Fri, Nov 27, 2020 at 5:49 AM Hans-Peter Nilsson <hp@axis.com> wrote:
>
> > 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.
"readelf -wL" should display
CU: ..../pr26936c.s:
Please show your full "readelf -wL" command line and its full output.
> > > 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?
I am running Fedora 33. I used
CC="gcc -m32 -O2" CXX="g++ -m32" /export/gnu/import/git/gitlab/x86-binutils/conf
igure \
\
--target=cris-axis-linux-gnu \
--enable-plugins --disable-gdb --disable-gdbserver --disable-libdecnumbe
r --disable-readline --disable-sim --with-sysroot=/ --with-system-zlib \
--prefix=/usr/local \
--with-local-prefix=/usr/local
to configure binutils.
--
H.J.
More information about the Binutils
mailing list