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

Sam James sam@gentoo.org
Thu Jan 23 00:04:37 GMT 2025


ld/
	PR ld/32580

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

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

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

base-commit: 1d39a0d7588b1d7b7bed3a3a841caa7f68d3140f
-- 
2.48.1



More information about the Binutils mailing list