[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a8cb74a7-358b-9c03-a37a-672e212d3571@loongson.cn>
Date: Wed, 19 Feb 2025 08:53:12 +0800
From: Tiezhu Yang <yangtiezhu@...ngson.cn>
To: Ard Biesheuvel <ardb@...nel.org>, Ard Biesheuvel <ardb+git@...gle.com>
Cc: linux-kernel@...r.kernel.org, x86@...nel.org,
Huacai Chen <chenhuacai@...nel.org>, Josh Poimboeuf <jpoimboe@...nel.org>,
Peter Zijlstra <peterz@...radead.org>
Subject: Re: [PATCH] objtool: Use idiomatic section name for relocatable
rodata under PIE
On 02/18/2025 05:29 PM, Ard Biesheuvel wrote:
> On Tue, 18 Feb 2025 at 10:26, Ard Biesheuvel <ardb+git@...gle.com> wrote:
>>
>> From: Ard Biesheuvel <ardb@...nel.org>
>>
>> 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.
This change works well with GCC and Clang on LoongArch.
Tested-by: Tiezhu Yang <yangtiezhu@...ngson.cn> # on LoongArch
Powered by blists - more mailing lists