From d2dbcb18c6a44595a2034aa73a1ad7b60df114d3 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 6 Jan 2020 14:00:34 +0000 Subject: [PATCH] Fix test of the fix for PR19579 when compiling with gcc-10. PR 25326 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler command line when building pr19579 binaries. --- ld/ChangeLog | 6 ++++++ ld/testsuite/ld-elf/shared.exp | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 476e6cb894c..fa7534da892 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2020-01-06 Nick Clifton + + PR 25326 + * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler + command line when building pr19579 binaries. + 2020-01-03 Hannes Domani * emultempl/pe.em: Add new option --enable-reloc-section. diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp index c47a9db997c..7852890999a 100644 --- a/ld/testsuite/ld-elf/shared.exp +++ b/ld/testsuite/ld-elf/shared.exp @@ -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" \ -- 2.39.2