ld/testsuite/
authorYufeng Zhang <yufeng.zhang@arm.com>
Fri, 14 Dec 2012 11:58:59 +0000 (11:58 +0000)
committerYufeng Zhang <yufeng.zhang@arm.com>
Fri, 14 Dec 2012 11:58:59 +0000 (11:58 +0000)
2012-12-13  Yufeng Zhang  <yufeng.zhang@arm.com>

* ld-elf/indirect.exp: Disable if -shared is not supported.
* lib/ld-lib.exp (check_shared_lib_support): Add aarch64*-*-elf and
arm*-*-elf to the exclude list.

ld/testsuite/ChangeLog
ld/testsuite/ld-elf/indirect.exp
ld/testsuite/lib/ld-lib.exp

index 994ee04e14f63ed51578edeb1d5f5c54540c6c91..42ba29b152c4b60628d6b6db1ffd9530b37a002f 100644 (file)
@@ -1,3 +1,9 @@
+2012-12-14  Yufeng Zhang  <yufeng.zhang@arm.com>
+
+       * ld-elf/indirect.exp: Disable if -shared is not supported.
+       * lib/ld-lib.exp (check_shared_lib_support): Add aarch64*-*-elf and
+       arm*-*-elf to the exclude list.
+
 2012-12-13  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/14956
index 165f89ac5a3597e9230119da462787302e36051c..07df2ccd5e930f32d7e2ed4dea659c2abcf51582 100644 (file)
@@ -26,6 +26,12 @@ if ![is_elf_format] {
     return
 }
 
+# Skip target where -shared is not supported
+
+if ![check_shared_lib_support] {
+    return
+}
+
 # Check if compiler works
 if { [which $CC] == 0 } {
     return
index 5f49e74f9dae69e3e06351facf1f3b2500157bfa..a3ff2e32e221e547685d0d43a06d58c4917ab09b 100644 (file)
@@ -1555,7 +1555,9 @@ proc check_gc_sections_available { } {
 # Only used and accurate for ELF targets at the moment
 
 proc check_shared_lib_support { } {
-    if {![istarget arc-*-*]
+    if {![istarget aarch64*-*-elf]
+        && ![istarget arc-*-*]
+        && ![istarget arm*-*-elf]
         && ![istarget avr-*-*]
         && ![istarget cr16-*-*]
         && ![istarget cris*-*-*]