RFA: Fix use of section number in ls'd PowerPC apuinfo tests
Alan Modra
amodra@gmail.com
Mon Jul 20 12:46:21 GMT 2020
On Mon, Jul 20, 2020 at 01:14:24PM +0100, Nick Clifton wrote:
> Hi Alan,
>
> I am trying to fix up some linker testsuite failures for the PowerPC
> architecture on our RHEL systems and I have come across three that
> look like this:
>
> /builddir/build/BUILD/binutils-2.34.90/ld/../binutils/readelf -x2 tmpdir/apuinfo-vle
> regexp_diff match failure
> regexp "^Hex dump of section '\.PPC\.EMB\.apuinfo':$"
> line "Section '.data' has no data to dump."
Hmm, so how come .data wasn't stripped for you? I'm just curious, not
concerned. The only way I can see that happening with FSF sources is
if you managed to pass -q/--emit-relocations to the ld under test.
> This looks to be due to a simple (incorrect) assumption that the
> .PPC.EMB.apuinfo section will be the second one in the executable, and
> if I apply the patch below the problem goes away.
>
> Any objections to my committing the patch ?
Not at all, please do so.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list