On Mon, Sep 8, 2025 at 7:31 AM Sam James <s...@gentoo.org> wrote: > > This didn't show up in my inbox for some reason, so sorry for awkward > reply: > > Can you do this? { dg-additional-options "-fPIE" { target pie } } >
This test requires no direct access to external symbols from executable. On x86, -mno-direct-extern-access works for both PIE and PDE. I sent the v2 patch to limit the test to PIE targets, but only use -fPIE for non-x86 targets. -- H.J.