Gold: Add targ_extra_little_endian to configure.ac
authorYunQiang Su <yunqiang.su@cipunited.com>
Mon, 28 Aug 2023 01:38:13 +0000 (21:38 -0400)
committerYunQiang Su <yunqiang.su@cipunited.com>
Mon, 28 Aug 2023 03:43:29 +0000 (23:43 -0400)
This option will be used by architectures which is big endian
by default, while little-endian support is also needed.

Mips(eb) ports are the examples.

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

index 5c6fe2a5607a7e3631db4d4805c49222891bc76c..ccb1f2269b25fac37acd3afaa4d4951dc1072067 100755 (executable)
@@ -5266,6 +5266,10 @@ for targ in $target $canon_targets; do
              -o "$targ_extra_big_endian" = "true"; then
              targ_32_big=yes
          fi
+         if test "$targ_little_endian" = "true" \
+             -o "$targ_extra_little_endian" = "true"; then
+             targ_32_little=yes
+         fi
          if test "$targ_big_endian" = "false" \
              -o "$targ_extra_big_endian" = "false"; then
              targ_32_little=yes
@@ -5276,6 +5280,10 @@ for targ in $target $canon_targets; do
              -o "$targ_extra_big_endian" = "true"; then
              targ_64_big=yes
          fi
+         if test "$targ_little_endian" = "true" \
+             -o "$targ_extra_little_endian" = "true"; then
+             targ_64_little=yes
+         fi
          if test "$targ_big_endian" = "false" \
              -o "$targ_extra_big_endian" = "false"; then
              targ_64_little=yes
index cafd3503b3b2b799fa63a9880340ea1341cdcdf1..e04e4086140e3e84c872de1d2d18ff42f8b62dfe 100644 (file)
@@ -193,6 +193,10 @@ for targ in $target $canon_targets; do
              -o "$targ_extra_big_endian" = "true"; then
              targ_32_big=yes
          fi
+         if test "$targ_little_endian" = "true" \
+             -o "$targ_extra_little_endian" = "true"; then
+             targ_32_little=yes
+         fi
          if test "$targ_big_endian" = "false" \
              -o "$targ_extra_big_endian" = "false"; then
              targ_32_little=yes
@@ -203,6 +207,10 @@ for targ in $target $canon_targets; do
              -o "$targ_extra_big_endian" = "true"; then
              targ_64_big=yes
          fi
+         if test "$targ_little_endian" = "true" \
+             -o "$targ_extra_little_endian" = "true"; then
+             targ_64_little=yes
+         fi
          if test "$targ_big_endian" = "false" \
              -o "$targ_extra_big_endian" = "false"; then
              targ_64_little=yes
index 4b54e08d27f61e128e05550350bfc1a7a9e6c49f..b472b8f0bad9913d81b2c84de7e85c8b8c7529aa 100644 (file)
@@ -165,7 +165,7 @@ mips*-*-*)
  targ_machine=EM_MIPS
  targ_size=32
  targ_big_endian=true
- targ_extra_big_endian=false
+ targ_extra_little_endian=true
  ;;
 s390-*-*)
  targ_obj=s390