On Tue, 18 Feb 2025 at 10:26, Ard Biesheuvel <ardb+git@xxxxxxxxxx> wrote:
From: Ard Biesheuvel <ardb@xxxxxxxxxx>
When running in PIE mode, the compiler will emit const global objects
into .data.rel.ro rather than into .rodata if those objects contain
statically initialized fields carrying addresses that are subject to
runtime relocation (e.g., function pointers).
I'll send a fixed v2 once the LoongArch folks confirm that this works for them.