[PATCH] arm: Enable static-pie support (BZ 34098)

Andreas Schwab schwab@suse.de
Tue Jun 2 14:37:48 GMT 2026


On Apr 24 2026, Adhemerval Zanella wrote:

> It requires proper gcc support [1], and without proper compiler support
> the arm configure disable static-pie support.
>
> The start.S requires some adjustment to avoid loading main from
> the GOT.
>
> Checked on arm-linux-gnueabihf with and without the gcc patch applied.

This breaks the arm-main-in-dso test in mold, since it changes the
relocation for main from R_ARM_GOT32 to R_ARM_REL32, and mold does not
generate a PLT for the latter.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


More information about the Libc-alpha mailing list