[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <168302779125.294142.11817759835961907319.b4-ty@kernel.org>
Date: Tue, 2 May 2023 13:14:16 +0100
From: Will Deacon <will@...nel.org>
To: Fangrui Song <maskray@...gle.com>,
linux-arm-kernel@...ts.infradead.org,
Catalin Marinas <catalin.marinas@....com>,
Ard Biesheuvel <ardb@...nel.org>
Cc: kernel-team@...roid.com, Will Deacon <will@...nel.org>,
Bill Wendling <morbo@...gle.com>,
Nick Desaulniers <ndesaulniers@...gle.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] arm64: lds: move .got section out of .text
On Tue, 2 May 2023 07:41:05 +0000, Fangrui Song wrote:
> Currently, the .got section is placed within the output section .text.
> However, when .got is non-empty, the SHF_WRITE flag is set for .text
> when linked by lld. GNU ld recognizes .text as a special section and
> ignores the SHF_WRITE flag. By renaming .text, we can also get the
> SHF_WRITE flag.
>
> The kernel has performed R_AARCH64_RELATIVE resolving very early, and can
> then assume that .got is read-only. Let's move .got to the vmlinux_rodata
> pseudo-segment.
>
> [...]
Applied to arm64 (for-next/core), thanks!
[1/1] arm64: lds: move .got section out of .text
https://git.kernel.org/arm64/c/0fddb79bf283
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
Powered by blists - more mailing lists