From e74494cd71c90a42f7cf78ec655c9c883a26c42a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 28 Jul 2022 15:04:41 +0100 Subject: gentoo auto-resync : 28:07:2022 - 15:04:40 --- .../mold/files/mold-1.3.1-fix-riscv-set32.patch | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 sys-devel/mold/files/mold-1.3.1-fix-riscv-set32.patch (limited to 'sys-devel/mold/files') diff --git a/sys-devel/mold/files/mold-1.3.1-fix-riscv-set32.patch b/sys-devel/mold/files/mold-1.3.1-fix-riscv-set32.patch new file mode 100644 index 000000000000..5613d8ddc003 --- /dev/null +++ b/sys-devel/mold/files/mold-1.3.1-fix-riscv-set32.patch @@ -0,0 +1,25 @@ +From https://github.com/rui314/mold/pull/590 +From 68bd00caa7c7946f380f72a5dd263e7c1d436e9f Mon Sep 17 00:00:00 2001 +From: Alex Fan +Date: Thu, 28 Jul 2022 14:04:21 +1000 +Subject: [PATCH] [ELF][RISCV] add missing R_RISCV_SET32 in EhFrameSection + +Signed-off-by: Alex Fan +--- + elf/arch-riscv64.cc | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/elf/arch-riscv64.cc b/elf/arch-riscv64.cc +index 8761c6ac..0c589118 100644 +--- a/elf/arch-riscv64.cc ++++ b/elf/arch-riscv64.cc +@@ -183,6 +183,9 @@ void EhFrameSection::apply_reloc(Context &ctx, const ElfRel &rel, + case R_RISCV_SET16: + *(ul16 *)loc = val; + return; ++ case R_RISCV_SET32: ++ *(ul32 *)loc = val; ++ return; + case R_RISCV_32_PCREL: + *(ul32 *)loc = val - this->shdr.sh_addr - offset; + return; -- cgit v1.2.3