[binutils-gdb] ld: fix bashism in scripttempl/elf.sc

Sam James sjames@sourceware.org
Thu Jan 23 00:05:02 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6999916e6c7fe6ba3a7661d852757f59223416a3

commit 6999916e6c7fe6ba3a7661d852757f59223416a3
Author: Sam James <sam@gentoo.org>
Date:   Thu Jan 23 00:03:07 2025 +0000

    ld: fix bashism in scripttempl/elf.sc
    
    ld/
            PR ld/32580
    
            * scripttempl/elf.sc: Fix '==' bashism.

Diff:
---
 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


More information about the Binutils-cvs mailing list