summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlava Barinov <v.barinov@samsung.com>2023-06-08 12:03:46 +0300
committerDongkyun Son <dongkyun.s@samsung.com>2024-03-11 17:05:55 +0900
commit58358490ef3a5464b19d89e6261f8419b18a2290 (patch)
treefdaaa67f59bfd1248a976c5c2a86dc9d79f8c68a
parent3f0c0bc6e1524f333b7de14096a283ec4a7684cf (diff)
downloadbinutils-58358490ef3a5464b19d89e6261f8419b18a2290.tar.gz
binutils-58358490ef3a5464b19d89e6261f8419b18a2290.tar.bz2
binutils-58358490ef3a5464b19d89e6261f8419b18a2290.zip
Workaround for riscv64 gold
This change is required to build a cross-binutils and enable acceleration Change-Id: Ifb3547e6889b6844d0e726bac8175faf1a9ac7b8
-rwxr-xr-xgold/configure4
-rw-r--r--gold/configure.ac4
-rw-r--r--gold/configure.tgt3
3 files changed, 11 insertions, 0 deletions
diff --git a/gold/configure b/gold/configure
index c92f4478776..fee8dbcc079 100755
--- a/gold/configure
+++ b/gold/configure
@@ -5276,6 +5276,10 @@ for targ in $target $canon_targets; do
else
. ${srcdir}/configure.tgt
+ if test "$targ_obj" = "RISCV64"; then
+ continue
+ fi
+
if test "$targ_obj" = "UNKNOWN"; then
as_fn_error $? "\"unsupported target $targ\"" "$LINENO" 5
else
diff --git a/gold/configure.ac b/gold/configure.ac
index 2c7a969b97f..c4350353c06 100644
--- a/gold/configure.ac
+++ b/gold/configure.ac
@@ -181,6 +181,10 @@ for targ in $target $canon_targets; do
else
. ${srcdir}/configure.tgt
+ if test "$targ_obj" = "RISCV64"; then
+ continue
+ fi
+
if test "$targ_obj" = "UNKNOWN"; then
AC_MSG_ERROR("unsupported target $targ")
else
diff --git a/gold/configure.tgt b/gold/configure.tgt
index a80ec6a3201..4ffbda01f47 100644
--- a/gold/configure.tgt
+++ b/gold/configure.tgt
@@ -183,6 +183,9 @@ s390x-*-*)
targ_big_endian=true
targ_extra_big_endian=false
;;
+riscv64-*-*)
+ targ_obj=RISCV64
+ ;;
*)
targ_obj=UNKNOWN
;;