1 Star 0 Fork 25

Zhao Hang/binutils

forked from src-anolis-os/binutils 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ld-change-loong64-to-loongarch64.patch 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
lixing.loongson.cn 提交于 2023-07-18 15:03 . Fixup some bugs for LoongArch
From 7b7a73db01663eb815cfc647c46865ecc5e342e1 Mon Sep 17 00:00:00 2001
From: Peng Fan <fanpeng@loongson.cn>
Date: Tue, 29 Nov 2022 11:53:20 +0800
Subject: [PATCH 06/12] ld: change loong64 to loongarch64
Fix default search dirs for loongarch64, loong64 cannot be recognized,
which causes some libraries not beging visible.
Signed-off-by: Peng Fan <fanpeng@loongson.cn>
Change-Id: I663e77a770aef11fd232e05126fd5132acdc89c2
---
ld/emulparams/elf64loongarch.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ld/emulparams/elf64loongarch.sh b/ld/emulparams/elf64loongarch.sh
index 65b6300b..18b2d0e9 100644
--- a/ld/emulparams/elf64loongarch.sh
+++ b/ld/emulparams/elf64loongarch.sh
@@ -6,10 +6,10 @@ OUTPUT_FORMAT="elf64-loongarch"
# On Linux, first look for 64 bit LP64D target libraries in /lib64/lp64d as per
# the glibc ABI, and then /lib64 for backward compatility.
case "$target" in
- loong64*-linux*)
+ loongarch64*-linux*)
case "$EMULATION_NAME" in
*64*)
- LIBPATH_SUFFIX="64/lib64 64";;
+ LIBPATH_SUFFIX="64";;
esac
;;
esac
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhaohang_mskdxl/binutils.git
git@gitee.com:zhaohang_mskdxl/binutils.git
zhaohang_mskdxl
binutils
binutils
a8

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385