[PATCH 0/2] LoongArch DT_RELR fixes (for master and 2.43)

Xi Ruoyao xry111@xry111.site
Mon Aug 12 10:25:14 GMT 2024


On Mon, 2024-08-12 at 18:04 +0800, Lulu Cai wrote:
> On 8/4/24 4:04 AM, Xi Ruoyao wrote:
> > When I perform a full system rebuild with -Wl,-z,packed-relative-relocs
> > I noticed two bugs in my implementation.  I hope we can fix them now
> > instead of shipping a buggy 2.43 release.
> > 
> > Xi Ruoyao (2):
> >    LoongArch: Fix assertion failure with DT_RELR
> >    LoongArch: Fix DT_RELR and relaxation interaction
> > 
> >   bfd/elfnn-loongarch.c                           | 17 ++++++++++++++++-
> >   .../ld-loongarch-elf/ld-loongarch-elf.exp       |  1 +
> >   ld/testsuite/ld-loongarch-elf/relr-got-start.d  |  7 +++++++
> >   ld/testsuite/ld-loongarch-elf/relr-got-start.s  |  5 +++++
> >   4 files changed, 29 insertions(+), 1 deletion(-)
> >   create mode 100644 ld/testsuite/ld-loongarch-elf/relr-got-start.d
> >   create mode 100644 ld/testsuite/ld-loongarch-elf/relr-got-start.s
> > 
> 
> When I applied these patches on the master branch a conflict occurred that
> needed to be resolved.

Rebased and sent v2:
https://sourceware.org/pipermail/binutils/2024-August/136246.html

-- 
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University


More information about the Binutils mailing list