1 Star 0 Fork 27

lixing.loongson.cn/binutils_anolis

forked from src-anolis-os/binutils 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
binutils-Remove-ABI_XLP32-related-code.patch 1.33 KB
一键复制 编辑 原始数据 按行查看 历史
ticat_fp 提交于 2024-03-07 14:08 +08:00 . LoongArch: fix some debug
From 86945d30ebb2ecb48904fceea20a664a6aca2ac3 Mon Sep 17 00:00:00 2001
From: ticat_fp <fanpeng@loongson.cn>
Date: Tue, 5 Mar 2024 15:02:28 +0800
Subject: [PATCH 2/2] binutils: Remove ABI_XLP32 related code.
LoongArch's gcc-8.3.0 does not have the built-in macro _ABILPX32,
and _ABILPX32 has been deprecated.
Signed-off-by: caiyinyu <caiyinyu@loongson.cn>
Signed-off-by: ticat_fp <fanpeng@loongson.cn>
---
binutils/readelf.c | 1 -
include/elf/loongarch.h | 1 -
2 files changed, 2 deletions(-)
diff --git a/binutils/readelf.c b/binutils/readelf.c
index f3e989c8..125dd752 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -3863,7 +3863,6 @@ get_machine_flags (Filedata * filedata, unsigned e_flags, unsigned e_machine)
switch (e_flags & EF_LARCH_ABI)
{
case EF_LARCH_ABI_LP64: strcat (buf, ", LP64"); break;
- case EF_LARCH_ABI_XLP32: strcat (buf, ", XLP32"); break;
case EF_LARCH_ABI_LP32: strcat (buf, ", LP32"); break;
}
break;
diff --git a/include/elf/loongarch.h b/include/elf/loongarch.h
index 09a8ad23..c26705c0 100644
--- a/include/elf/loongarch.h
+++ b/include/elf/loongarch.h
@@ -88,7 +88,6 @@ END_RELOC_NUMBERS (R_LARCH_count)
#define EF_LARCH_ABI 0x0003
#define EF_LARCH_ABI_LP64 0x0003
-#define EF_LARCH_ABI_XLP32 0x0002
#define EF_LARCH_ABI_LP32 0x0001
#endif /* _ELF_LOONG_H */
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lixing-loongson-cn/binutils_anolis.git
git@gitee.com:lixing-loongson-cn/binutils_anolis.git
lixing-loongson-cn
binutils_anolis
binutils_anolis
a8

搜索帮助