[COMMITTED] ld: fix bashism in scripttempl/elf.sc

Message ID 56ea1977f158c1d7947db5b1c4bdd05e3075357b.1737590677.git.sam@gentoo.org
State New
Headers
Series [COMMITTED] ld: fix bashism in scripttempl/elf.sc |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_binutils_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 fail Patch failed to apply

Commit Message

Sam James Jan. 23, 2025, 12:04 a.m. UTC
  ld/
	PR ld/32580

	* scripttempl/elf.sc: Fix '==' bashism.
---
Committed as obvious.

 ld/scripttempl/elf.sc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: 1d39a0d7588b1d7b7bed3a3a841caa7f68d3140f
  

Patch

diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
index deb69dde543..be8d19fcf11 100644
--- a/ld/scripttempl/elf.sc
+++ b/ld/scripttempl/elf.sc
@@ -912,7 +912,7 @@  emit_large_bss()
     return
   fi
 
-  if test "$1" == "0"; then
+  if test "$1" = "0"; then
     if test -n "${LARGE_BSS_AFTER_BSS}"; then
       return
     fi