[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <164579795583.2003844.2115032608594321024.b4-ty@kernel.org>
Date: Fri, 25 Feb 2022 15:50:15 +0000
From: Will Deacon <will@...nel.org>
To: Fangrui Song <maskray@...gle.com>,
linux-arm-kernel@...ts.infradead.org,
Ard Biesheuvel <ardb@...nel.org>,
Catalin Marinas <catalin.marinas@....com>
Cc: kernel-team@...roid.com, Will Deacon <will@...nel.org>,
linux-kernel@...r.kernel.org,
Nathan Chancellor <nathan@...nel.org>, llvm@...ts.linux.dev
Subject: Re: [PATCH] arm64 module: remove (NOLOAD)
On Fri, 18 Feb 2022 00:12:09 -0800, Fangrui Song wrote:
> On ELF, (NOLOAD) sets the section type to SHT_NOBITS[1]. It is conceptually
> inappropriate for .plt and .text.* sections which are always
> SHT_PROGBITS.
>
> In GNU ld, if PLT entries are needed, .plt will be SHT_PROGBITS anyway
> and (NOLOAD) will be essentially ignored. In ld.lld, since
> https://reviews.llvm.org/D118840 ("[ELF] Support (TYPE=<value>) to
> customize the output section type"), ld.lld will report a `section type
> mismatch` error. Just remove (NOLOAD) to fix the error.
>
> [...]
Applied to arm64 (for-next/linkage), thanks!
[1/1] arm64: module: remove (NOLOAD) from linker script
https://git.kernel.org/arm64/c/4013e26670c5
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
Powered by blists - more mailing lists