[PATCH v1] LoongArch: Do not relax against __[start|stop]_SECNAME symbol
Nick Clifton
nickc@redhat.com
Tue Jan 28 13:45:06 GMT 2025
Hi Lulu,
> This patch fixes a relaxation bug for LoongArch and needs to be applied to 2.44 branch and the mainline source.
>
> link: https://sourceware.org/pipermail/binutils/2025-January/138943.html
When I test this patch on my local machine (an x86_64 box) I get a
new linker testsuite failure:
FAIL: ld-loongarch-elf/start_stop
The reason, according to ld.log is:
Executing on host: sh -c {./ld-new -L/work/sources/binutils/upstream/2.44/ld/testsuite/ld-loongarch-elf -z norelro -pie -e0 -o tmpdir/dump tmpdir/start_stop.o 2>&1}
/dev/null dump.tmp (timeout = 300)
spawn [open ...]
./ld-new: -pie not supported
failed with: <./ld-new: -pie not supported>, no expected output
I think that this must be a problem with my local setup, so please
go ahead and apply the fix to both the mainline and the 2.44 branch.
But if you can, please do run a quick check to make sure that the
linker test does actually pass for you...
Cheers
Nick
More information about the Binutils
mailing list