PR ld/14170
* ld-elf/elf.exp: Add a test for PR ld/14170.
* ld-elf/pr14170a.s: New file.
* ld-elf/pr14170b.s: Likewise.
* ld-elf/pr14170b.s: Likewise.
+2012-05-27 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/14170
+ * ld-elf/elf.exp: Add a test for PR ld/14170.
+
+ * ld-elf/pr14170a.s: New file.
+ * ld-elf/pr14170b.s: Likewise.
+ * ld-elf/pr14170b.s: Likewise.
+
2012-05-26 Alan Modra <amodra@gmail.com>
* ld-srec/srec.exp: Remove powerpc64 flag setting.
#
# Only run the test on targets thats support creating shared libraries.
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-*-*"
run_ld_link_tests {
{"Build shared library for next test"
--- /dev/null
+
+ .global start /* Used by SH targets. */
+start:
+ .global _start
+_start:
+ .global __start
+__start:
+ .global main /* Used by HPPA targets. */
+main:
+ .dc.a foo
+ .dc.a bar
--- /dev/null
+ .data
+ .type foo,%object
+ .globl foo
+foo:
+ .dc.a 0
+ .size foo, . - foo
+ .type foo,%object
+ .globl bar
+bar:
+ .dc.a 0
+ .size bar, . - bar
--- /dev/null
+ .hidden foo
+ .comm foo,4,4