]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
lto: Compile PR ld/23818 test with -fPIC
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 30 Nov 2025 08:02:07 +0000 (16:02 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 30 Nov 2025 08:07:08 +0000 (16:07 +0800)
commit7ae37d96d128e8495fc77238dea052429ffacbc5
treefc5338d25ad12acdf01ca74a2cad16829bdd52f8
parent94ebb7810ebd966aa857aa55c5bdc34382f4572b
lto: Compile PR ld/23818 test with -fPIC

Compile PR ld/23818 test with -fPIC to fix

testsuite/ld-plugin/pr23818b.c:6:(.text+0x34): relocation R_MIPS_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
FAIL: Build libpr23818.so

for mips.

PR ld/23818
* testsuite/ld-plugin/lto.exp: Compile PR ld/23818 test with
-fPIC.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
ld/testsuite/ld-plugin/lto.exp