]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix test of the fix for PR19579 when compiling with gcc-10.
authorNick Clifton <nickc@redhat.com>
Mon, 6 Jan 2020 14:00:34 +0000 (14:00 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 6 Jan 2020 14:01:41 +0000 (14:01 +0000)
PR 25326
* testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
command line when building pr19579 binaries.

ld/ChangeLog
ld/testsuite/ld-elf/shared.exp

index 476e6cb894c243c4e3ea40693999dccf84f75088..fa7534da892ad8ed9063151f2c2d688d664b2ac0 100644 (file)
@@ -1,3 +1,9 @@
+2020-01-06  Nick Clifton  <nickc@redhat.com>
+
+       PR 25326
+       * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
+       command line when building pr19579 binaries.
+
 2020-01-03  Hannes Domani  <ssbssa@yahoo.de>
 
        * emultempl/pe.em: Add new option --enable-reloc-section.
index c47a9db997c0801e2cf8054ecdf4b7f850286ca5..7852890999a1b8fc5234a5f050d491ddeb2879f2 100644 (file)
@@ -1061,7 +1061,7 @@ if { [istarget *-*-linux*]
        ] \
        [list \
            "Build pr19579a.o" \
-           "" "-fPIE" \
+           "" "-fPIE -fcommon" \
            {pr19579a.c} \
            {} \
            "libpr19579a.a" \
@@ -1069,7 +1069,7 @@ if { [istarget *-*-linux*]
        [list \
            "Build libpr19579.so" \
            "-shared" \
-           "-fPIC" \
+           "-fPIC -fcommon" \
            {pr19579b.c} \
            {} \
            "libpr19579.so" \
@@ -1077,7 +1077,7 @@ if { [istarget *-*-linux*]
        [list \
            "Build libpr19579now.so" \
            "-shared -Wl,-z,now" \
-           "-fPIC" \
+           "-fPIC -fcommon" \
            {pr19579b.c} \
            {} \
            "libpr19579.so" \