1 Star 0 Fork 25

happy_orange/binutils

forked from src-anolis-os/binutils 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ld-Delete-R_LARCH_NONE-relocation-of-eh_frame.patch 867 Bytes
一键复制 编辑 原始数据 按行查看 历史
lixing.loongson.cn 提交于 2023-07-18 15:03 . Fixup some bugs for LoongArch
From e6325d88510c87676bc51ae41b49537f72bf5a95 Mon Sep 17 00:00:00 2001
From: Xing Li <lixing@loongson.cn>
Date: Tue, 18 Jul 2023 13:11:27 +0800
Subject: [PATCH 2/2] ld: Delete R_LARCH_NONE relocation of eh_frame.
---
bfd/elfnn-loongarch.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bfd/elfnn-loongarch.c b/bfd/elfnn-loongarch.c
index 93459979..ca29aaea 100644
--- a/bfd/elfnn-loongarch.c
+++ b/bfd/elfnn-loongarch.c
@@ -823,8 +823,9 @@ loongarch_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
case R_LARCH_JUMP_SLOT:
case R_LARCH_32:
case R_LARCH_64:
- need_dynreloc = 1;
+ if (0 != strcmp(sec->name, ".eh_frame"))
+ need_dynreloc = 1;
/* If resolved symbol is defined in this object,
1. Under pie, the symbol is known. We convert it
into R_LARCH_RELATIVE and need load-addr still.
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/happy_orange/binutils.git
git@gitee.com:happy_orange/binutils.git
happy_orange
binutils
binutils
a8

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385