diff options
author | Nick Clifton <nickc@redhat.com> | 2020-01-06 14:00:34 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2020-01-06 14:01:41 +0000 |
commit | d2dbcb18c6a44595a2034aa73a1ad7b60df114d3 (patch) | |
tree | b98a6050ada174fa8a3e7f706b9c5209c74110a1 /ld/testsuite | |
parent | a61b4f6997cefbf28df45d5e1fa40663f0679ba8 (diff) | |
download | binutils-d2dbcb18c6a44595a2034aa73a1ad7b60df114d3.zip binutils-d2dbcb18c6a44595a2034aa73a1ad7b60df114d3.tar.gz binutils-d2dbcb18c6a44595a2034aa73a1ad7b60df114d3.tar.bz2 |
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.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ld-elf/shared.exp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp index c47a9db..7852890 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" \ |