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

陈华才 chenhuacai at loongson.cn
Sun Aug 28 20:59:32 PDT 2022


OK, I think this is the root cause, but this patch is still worthy to go 6.0-rc4.

Huacai 


> -----原始邮件-----
> 发件人: "Xi Ruoyao" <xry111 at xry111.site>
> 发送时间:2022-08-28 17:44:24 (星期日)
> 收件人: "Ard Biesheuvel" <ardb at kernel.org>
> 抄送: "陈华才" <chenhuacai at loongson.cn>, linux-efi at vger.kernel.org, linux-arm-kernel at lists.infradead.org, "James
>  E.J. Bottomley" <James.Bottomley at hansenpartnership.com>, "Matthew Garrett" <mjg59 at srcf.ucam.org>, "Peter Jones" <pjones at redhat.com>, "Ilias Apalodimas" <ilias.apalodimas at linaro.org>, "Heinrich Schuchardt" <heinrich.schuchardt at canonical.com>, "AKASHI Takahiro" <takahiro.akashi at linaro.org>, "Palmer Dabbelt" <palmer at dabbelt.com>, "Atish
>  Patra" <atishp at atishpatra.org>, "Arnd Bergmann" <arnd at arndb.de>, "Lennart
>  Poettering" <lennart at poettering.net>, "Jeremy Linton" <jeremy.linton at arm.com>
> 主题: Re: [PATCH v4 8/9] loongarch: avoid orphan input sections
> 
> On Sun, 2022-08-28 at 11:36 +0200, Ard Biesheuvel wrote:
> > But does the ELF psABI for LoongArch describe L_ARCH_NONE as a dynamic
> > relocation? .rela.dyn typically only contains relocations that are
> > specified as being suitable for runtime relocation.
> 
> In Binutils 2.39 the BFD linker often over-estimate the size of .rela.*.
> For example if there is only 42 relocations, it may allocate the space
> for 47 relocations and fill the unused space in the section with zero. 
> Then 5 R_LARCH_NONE will appear.
> 
> This has already caused trouble when we reviewed LoongArch glibc port,
> but at last the reviewers considered using NONE relocations as a
> "padding" acceptable.  So in glibc ld.so will treat R_LARCH_NONE as a
> "dynamic" relocation with no real effect.
> 
> The issue (or "bug", if we want a more serious term) seems fixed in
> Binutils trunk, but I've not rebuilt the entire system with it so I'm
> not sure if it's completely fixed.
> 
> -- 
> Xi Ruoyao <xry111 at xry111.site>
> School of Aerospace Science and Technology, Xidian University


本邮件及其附件含有龙芯中科的商业秘密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制或散发)本邮件及其附件中的信息。如果您错收本邮件,请您立即电话或邮件通知发件人并删除本邮件。 
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. 


More information about the linux-arm-kernel mailing list