Link the bare soft-float flavor no-pie

Everything in it is built -fno-pic, so a distribution whose driver
defaults to PIE rejects the resulting R_386_32 relocations outright.
Only 32-bit x86 minds, its addressing having nowhere else to go.

Straight to the linker: clang swallows the driver spelling when it is
gcc doing the link.
This commit is contained in:
Ole André Vadla Ravnås committed 2026-08-13 17:53:44 +02:00
1 parent 96822d2d1f
commit 0ad9eef364
1 file changed
+1
+1
View File
@@ -242,6 +242,7 @@ def init_machine_config(machine: MachineSpec,
# and the one that matches this ABI is the one in the sysroot.
linker_flags += [
"-fuse-ld=lld",
"-Wl,-no-pie",
"-nostdlib",
"-lc",
"-lclang_rt.builtins",