Browse Source

ld-dynamic test fixes

* testsuite/ld-dynamic/export-dynamic-symbol-2.d: Match output for
	mips-sgi-irix6.
	* testsuite/ld-dynamic/export-dynamic-symbol-glob.d: Likewise.
	* testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: Likewise.
	* testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: Likewise.
	* testsuite/ld-dynamic/export-dynamic-symbol.exp: Exclude targets
	with poor PIE support.
binutils-2_35-branch
Alan Modra 6 years ago
parent
commit
a0c0ad5670
  1. 10
      ld/ChangeLog
  2. 7
      ld/testsuite/ld-dynamic/export-dynamic-symbol-2.d
  3. 3
      ld/testsuite/ld-dynamic/export-dynamic-symbol-glob.d
  4. 5
      ld/testsuite/ld-dynamic/export-dynamic-symbol-list-2.d
  5. 3
      ld/testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d
  6. 11
      ld/testsuite/ld-dynamic/export-dynamic-symbol.exp

10
ld/ChangeLog

@ -1,3 +1,13 @@
2020-06-04 Alan Modra <amodra@gmail.com>
* testsuite/ld-dynamic/export-dynamic-symbol-2.d: Match output for
mips-sgi-irix6.
* testsuite/ld-dynamic/export-dynamic-symbol-glob.d: Likewise.
* testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: Likewise.
* testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: Likewise.
* testsuite/ld-dynamic/export-dynamic-symbol.exp: Exclude targets
with poor PIE support.
2020-06-04 Alan Modra <amodra@gmail.com>
* testsuite/ld-plugin/lto.exp (pr12758.exe): Add NOPIE_LDFLAGS.

7
ld/testsuite/ld-dynamic/export-dynamic-symbol-2.d

@ -2,8 +2,11 @@
#source: export-dynamic-symbol.s
#ld: -pie -u foo --export-dynamic-symbol foo --export-dynamic-symbol=bar tmpdir/libpr25910.a
#nm: -D
# mips-sgi-irix6 makes foo and bar SHN_MIPS_DATA (SHN_LOPROC+2) due to the
# testcase carelessly leaving them untyped which mips gas turns into
# STT_OBJECT type. nm interprets SHN_MIPS_DATA (incorrectly) to be A type.
#...
[0-9a-f]+ T +bar
[0-9a-f]+ T +foo
[0-9a-f]+ [AT] +bar
[0-9a-f]+ [AT] +foo
#...

3
ld/testsuite/ld-dynamic/export-dynamic-symbol-glob.d

@ -2,7 +2,8 @@
#source: export-dynamic-symbol.s
#ld: -pie -u foo --export-dynamic-symbol "f*" tmpdir/libpr25910.a
#nm: -D
# See comment in export-dynamic-symbol-2.d for why A is allowed here.
#...
[0-9a-f]+ T +foo
[0-9a-f]+ [AT] +foo
#...

5
ld/testsuite/ld-dynamic/export-dynamic-symbol-list-2.d

@ -2,8 +2,9 @@
#source: export-dynamic-symbol.s
#ld: -pie -u foo --export-dynamic-symbol-list foo-bar.list tmpdir/libpr25910.a
#nm: -D
# See comment in export-dynamic-symbol-2.d for why A is allowed here.
#...
[0-9a-f]+ T +bar
[0-9a-f]+ T +foo
[0-9a-f]+ [AT] +bar
[0-9a-f]+ [AT] +foo
#...

3
ld/testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d

@ -2,7 +2,8 @@
#source: export-dynamic-symbol.s
#ld: -pie -u foo --export-dynamic-symbol-list fstar.list tmpdir/libpr25910.a
#nm: -D
# See comment in export-dynamic-symbol-2.d for why A is allowed here.
#...
[0-9a-f]+ T +foo
[0-9a-f]+ [AT] +foo
#...

11
ld/testsuite/ld-dynamic/export-dynamic-symbol.exp

@ -23,9 +23,16 @@ if ![is_elf_format] {
return
}
# Skip targets where -shared is not supported
# Skip targets where -shared or -pie is not supported
if { ![check_shared_lib_support] || ![check_pie_support] } {
return
}
if ![check_shared_lib_support] {
# Skip targets that have poor PIE support, resulting in failures due to
# PHDR segment not covered by LOAD segment errors.
if { ([istarget "bfin-*-*"] && ![istarget "bfin-*-linux*"])
|| [istarget "mn10300-*-*"]
|| [istarget "score-*-*"] } {
return
}

Loading…
Cancel
Save