https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119386
--- Comment #46 from Alexander Monakov <amonakov at gcc dot gnu.org> --- A small correction: -static-pie is not a linker option, it's a gcc (compiler driver) option, which it decomposes into -static -pie --no-dynamic-linker -z text for the linker; --no-dynamic-linker was added about 10 years ago, and is already used in the kernel for loongarch, powerpc, and x86.