aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/elfarcv2.sc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-11-25 22:31:59 -0500
committerMike Frysinger <vapier@gentoo.org>2021-11-25 22:59:44 -0500
commit5fd82aa26484b8f3d584bcec8a33616a719cd24c (patch)
tree00f1766bccc902b5a303d8d523699bb7600d260f /ld/scripttempl/elfarcv2.sc
parent3b4d5621ace06f5ed29dbc9df52fd7347d0c24f1 (diff)
downloadgdb-5fd82aa26484b8f3d584bcec8a33616a719cd24c.zip
gdb-5fd82aa26484b8f3d584bcec8a33616a719cd24c.tar.gz
gdb-5fd82aa26484b8f3d584bcec8a33616a719cd24c.tar.bz2
ld: fix POSIX shell test usage
POSIX test uses = for compares, not == which is a bashism.
Diffstat (limited to 'ld/scripttempl/elfarcv2.sc')
-rw-r--r--ld/scripttempl/elfarcv2.sc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/scripttempl/elfarcv2.sc b/ld/scripttempl/elfarcv2.sc
index a0c4f7e..bf84c76 100644
--- a/ld/scripttempl/elfarcv2.sc
+++ b/ld/scripttempl/elfarcv2.sc
@@ -13,7 +13,7 @@ test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT}
test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT}
# If we request a big endian toolchain, give a big endian linker
test -z "$GOT" && GOT=".got ${RELOCATING-0} : {${RELOCATING+ *(.got.plt)} *(.got) } ${RELOCATING+ > ${DATA_MEMORY}}"
-test "${ARC_ENDIAN}" == "big" && OUTPUT_FORMAT=${BIG_OUTPUT_FORMAT}
+test "${ARC_ENDIAN}" = "big" && OUTPUT_FORMAT=${BIG_OUTPUT_FORMAT}
if [ -z "$MACHINE" ]; then OUTPUT_ARCH=${ARCH}; else OUTPUT_ARCH=${ARCH}:${MACHINE}; fi
test -z "${ELFSIZE}" && ELFSIZE=32
test -z "${ALIGNMENT}" && ALIGNMENT="${ELFSIZE} / 8"