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

Yury Khrustalev yury.khrustalev@arm.com
Wed Apr 29 13:49:00 GMT 2026


On Wed, Apr 29, 2026 at 01:01:19PM +0000, Jaeyoon Jung wrote:
> > From:�Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
> > Sent:�Wednesday, April 29, 2026 21:36
> > To:�Yury Khrustalev <yury.khrustalev@arm.com>
> > Cc:�libc-alpha@sourceware.org <libc-alpha@sourceware.org>; Jaeyoon Jung <jaeyoon.jung@lge.com>; Sam James <sam@gentoo.org>
> > Subject:�Re: [PATCH] arm: Enable static-pie support (BZ 34098)
> > �
> > 
> > 
> > On 29/04/26 07:00, Yury Khrustalev wrote:
> > > On Fri, Apr 24, 2026 at 10:49:23AM -0300, 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.
> > >
> > > Could you share how you tested it? Perhaps it makes sense to add a test
> > > that is supposed to link successfully as a static PIE?
> > 
> > The easiest way to check the static-pie is to bootstrap a toolchain with
> > the gcc patch, otherwise you will need to hack glibc testing to pass the
> > same flags when -static-pie is used.
> > 
> 
> In my case, I verified it in my Yocto build system with two patches applied
> to the corresponding recipes in oe-core. The test result was successful as
> shared in https://sourceware.org/bugzilla/show_bug.cgi?id=34098.
> I'm also considering to send those patches to oe-core once this patch gets
> accepted and merged.
> 
>

Thanks both!

In this case, LGTM Reviewed-by: Yury Khrustalev <yury.khrustalev@arm.com>

Adhemerval, feel free to push after fixing the two minor things I raised
in my previous email.

Thanks,
Yury



More information about the Libc-alpha mailing list