PR ld/14170

* ld-elf/pr14170a.s: Put foo, bar address in .data.
	* ld-elf/elf.exp: Don't run pr14170 test on hppa64-hpux.  Ignore
	tic6x warnings.
This commit is contained in:
Alan Modra 2012-05-28 04:08:53 +00:00
parent d55f95fab0
commit e54e67a9e9
3 changed files with 33 additions and 18 deletions

View file

@ -1,3 +1,10 @@
2012-05-28 Alan Modra <amodra@gmail.com>
PR ld/14170
* ld-elf/pr14170a.s: Put foo, bar address in .data.
* ld-elf/elf.exp: Don't run pr14170 test on hppa64-hpux. Ignore
tic6x warnings.
2012-05-27 H.J. Lu <hongjiu.lu@intel.com> 2012-05-27 H.J. Lu <hongjiu.lu@intel.com>
PR ld/14170 PR ld/14170
@ -5,7 +12,7 @@
* ld-elf/pr14170a.s: New file. * ld-elf/pr14170a.s: New file.
* ld-elf/pr14170b.s: Likewise. * ld-elf/pr14170b.s: Likewise.
* ld-elf/pr14170b.s: Likewise. * ld-elf/pr14170c.s: Likewise.
2012-05-26 Alan Modra <amodra@gmail.com> 2012-05-26 Alan Modra <amodra@gmail.com>

View file

@ -57,6 +57,20 @@ if { ![istarget hppa64*-hpux*] } {
"" "" "" ""
{symbol3w.s} {} "symbol3w.a"} {symbol3w.s} {} "symbol3w.a"}
} }
if { [check_shared_lib_support] } then {
run_ld_link_tests {
{"Build pr14170a.o" "" "" "pr14170a.s" {} "pr14170.a" }
}
setup_xfail "tic6x-*-*"
run_ld_link_tests {
{"Build shared library for pr14170"
"-shared" "" "pr14170b.s" {} "pr14170.so" }
{"PR ld/14170"
"tmpdir/pr14170a.o tmpdir/pr14170.so" "" "pr14170c.s"
{ } "pr14170" }
}
}
} }
# Run a test to check linking a shared library with a broken linker # Run a test to check linking a shared library with a broken linker
@ -66,14 +80,6 @@ if { ![istarget hppa64*-hpux*] } {
# #
# Only run the test on targets thats support creating shared libraries. # Only run the test on targets thats support creating shared libraries.
if { [check_shared_lib_support] } then { if { [check_shared_lib_support] } then {
run_ld_link_tests {
{"Build pr14170a.o" "" "" "pr14170a.s" {} "pr14170.a" }
{"Build shared library for pr14170"
"-shared" "" "pr14170b.s" {} "pr14170.so" }
{"PR ld/14170"
"tmpdir/pr14170a.o tmpdir/pr14170.so" "" "pr14170c.s"
{ } "a.out" }
}
setup_xfail "tic6x-*-*" setup_xfail "tic6x-*-*"
run_ld_link_tests { run_ld_link_tests {
{"Build shared library for next test" {"Build shared library for next test"

View file

@ -7,5 +7,7 @@ _start:
__start: __start:
.global main /* Used by HPPA targets. */ .global main /* Used by HPPA targets. */
main: main:
.data
.dc.a foo .dc.a foo
.dc.a bar .dc.a bar