Workaround for riscv64 gold 83/297083/1 accepted/tizen_base_riscv accepted/tizen/base/riscv/20231123.094537
authorSlava Barinov <v.barinov@samsung.com>
Thu, 8 Jun 2023 09:03:46 +0000 (12:03 +0300)
committerDongkyun Son <dongkyun.s@samsung.com>
Thu, 10 Aug 2023 04:22:50 +0000 (13:22 +0900)
This change is required to build a cross-binutils and enable acceleration

Change-Id: Ifb3547e6889b6844d0e726bac8175faf1a9ac7b8

gold/configure
gold/configure.ac
gold/configure.tgt

index 5c6fe2a..8959876 100755 (executable)
@@ -5254,6 +5254,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
index cafd350..8f16261 100644 (file)
@@ -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
index 4b54e08..dedd04f 100644 (file)
@@ -181,6 +181,9 @@ s390x-*-*)
  targ_big_endian=true
  targ_extra_big_endian=false
  ;;
+riscv64-*-*)
+ targ_obj=RISCV64
+ ;;
 *)
   targ_obj=UNKNOWN
   ;;