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.
This commit is contained in:
Nick Clifton 2020-01-06 14:00:34 +00:00
parent a61b4f6997
commit d2dbcb18c6
2 changed files with 9 additions and 3 deletions

View 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.

View 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" \