Re: [PATCH v2] i386: Prefer PLT indirection for __fentry__ calls under -fPIC

2025-04-08 Thread H.J. Lu
On Tue, Apr 8, 2025 at 3:15 AM Ard Biesheuvel wrote: > > From: Ard Biesheuvel > > Commit bde21de1205 ("i386: Honour -mdirect-extern-access when calling > __fentry__") updated the logic that emits mcount() / __fentry__() calls > into function prologues when profiling is enabled, to avoid GOT-based

[PATCH v2] i386: Prefer PLT indirection for __fentry__ calls under -fPIC

2025-04-08 Thread Ard Biesheuvel
From: Ard Biesheuvel Commit bde21de1205 ("i386: Honour -mdirect-extern-access when calling __fentry__") updated the logic that emits mcount() / __fentry__() calls into function prologues when profiling is enabled, to avoid GOT-based indirect calls when a direct call would suffice. There are two