Re: [PATCH v4 8/9] loongarch: avoid orphan input sections

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, Ard,

It seems that this patch is a normal bugfix and has no relation with this series. If so, I prefer to take into loongarch-fixes for 6.0-rc4. Thanks.

Huacai


> -----原始邮件-----
> 发件人: "Ard Biesheuvel" <ardb@xxxxxxxxxx>
> 发送时间:2022-08-27 16:38:49 (星期六)
> 收件人: linux-efi@xxxxxxxxxxxxxxx
> 抄送: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, "Ard Biesheuvel" <ardb@xxxxxxxxxx>, "James E.J. Bottomley" <James.Bottomley@xxxxxxxxxxxxxxxxxxxxx>, "Matthew Garrett" <mjg59@xxxxxxxxxxxxx>, "Peter Jones" <pjones@xxxxxxxxxx>, "Ilias Apalodimas" <ilias.apalodimas@xxxxxxxxxx>, "Heinrich Schuchardt" <heinrich.schuchardt@xxxxxxxxxxxxx>, "AKASHI Takahiro" <takahiro.akashi@xxxxxxxxxx>, "Palmer Dabbelt" <palmer@xxxxxxxxxxx>, "Atish Patra" <atishp@xxxxxxxxxxxxxx>, "Arnd Bergmann" <arnd@xxxxxxxx>, "Huacai Chen" <chenhuacai@xxxxxxxxxxx>, "Xi Ruoyao" <xry111@xxxxxxxxxxx>, "Lennart Poettering" <lennart@xxxxxxxxxxxxxx>, "Jeremy Linton" <jeremy.linton@xxxxxxx>
> 主题: [PATCH v4 8/9] loongarch: avoid orphan input sections
> 
> Ensure that all input sections are listed explicitly in the linker
> script, and issue a warning otherwise. This ensures that the binary
> image matches the PE/COFF and other image metadata exactly, which is
> important for things like code signing.
> 
> Signed-off-by: Ard Biesheuvel <ardb@xxxxxxxxxx>
> ---
>  arch/loongarch/Kconfig              | 1 +
>  arch/loongarch/kernel/vmlinux.lds.S | 2 ++
>  2 files changed, 3 insertions(+)
> 
> diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig
> index fca106a8b8af..407502da4335 100644
> --- a/arch/loongarch/Kconfig
> +++ b/arch/loongarch/Kconfig
> @@ -51,6 +51,7 @@ config LOONGARCH
>  	select ARCH_USE_CMPXCHG_LOCKREF
>  	select ARCH_USE_QUEUED_RWLOCKS
>  	select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT
> +	select ARCH_WANT_LD_ORPHAN_WARN
>  	select ARCH_WANTS_NO_INSTR
>  	select BUILDTIME_TABLE_SORT
>  	select COMMON_CLK
> diff --git a/arch/loongarch/kernel/vmlinux.lds.S b/arch/loongarch/kernel/vmlinux.lds.S
> index 36d042739f3c..17d33308dfba 100644
> --- a/arch/loongarch/kernel/vmlinux.lds.S
> +++ b/arch/loongarch/kernel/vmlinux.lds.S
> @@ -74,6 +74,8 @@ SECTIONS
>  		EXIT_DATA
>  	}
>  
> +	.rela.dyn : { *(.rela.dyn) *(.rela*) }
> +
>  #ifdef CONFIG_SMP
>  	PERCPU_SECTION(1 << CONFIG_L1_CACHE_SHIFT)
>  #endif
> -- 
> 2.35.1


本邮件及其附件含有龙芯中科的商业秘密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制或散发)本邮件及其附件中的信息。如果您错收本邮件,请您立即电话或邮件通知发件人并删除本邮件。 
This email and its attachments contain confidential information from Loongson Technology , which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this email in error, please notify the sender by phone or email immediately and delete it. 




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux