[PATCH] elf: Get the real kept section

H.J. Lu hjl.tools@gmail.com
Fri Nov 27 14:37:37 GMT 2020


On Fri, Nov 27, 2020 at 6:32 AM Hans-Peter Nilsson <hp@axis.com> wrote:
>
> > From: "H.J. Lu" <hjl.tools@gmail.com>
> > Date: Fri, 27 Nov 2020 15:24:54 +0100
> > On Fri, Nov 27, 2020 at 6:19 AM Hans-Peter Nilsson <hp@axis.com> wrote:
>
> > > Thanks.  Maybe it's the "--with-sysroot=/" that matters,
> > > otherwise most curious.  I'm just passing the --target option,
> > > but to contents from a binutils release tarball corresponding to
> > > your --disable options.
> > >
> >
> > Please try binutils master branch from git repo instead of
> > binutils release tarball.
>
> You misunderstood: I *am* creating it from the master branch
> (again, at 2c6f3e56cb), but through the step of creating a
> release tar-ball (using src-release.sh), so I don't have to pass
> any --disable options like you do.  I was merely explaining that
> difference.

Something is odd with binutils you built.  I assume that "gcc -m64"
works for you.  Please compare

1.  Run 64-bit "readelf -wL" on "gcc -m32" output.
2.  Run 64-bit "readelf -wL" on "gcc -m64" output.
3.  Run 32-bit "readelf -wL" on "gcc -m32" output.
4.  Run 32-bit "readelf -wL" on "gcc -m64" output.

All outputs should be the same.

-- 
H.J.


More information about the Binutils mailing list