Disable shared library tests for nios2-*-elf.
authorSandra Loosemore <sandra@codesourcery.com>
Tue, 21 Mar 2017 20:25:09 +0000 (13:25 -0700)
committerSandra Loosemore <sandra@codesourcery.com>
Tue, 21 Mar 2017 20:25:09 +0000 (13:25 -0700)
The Nios II processor documentation defines relocations for PIC and
shared libraries as part of the GNU/Linux ABI only; GCC rejects -fpic
on bare-metal.

2017-03-21  Sandra Loosemore  <sandra@codesourcery.com>

ld/
* testsuite/lib/ld-lib.exp (check_shared_lib_support): Return
false for nios2-*-elf.

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

index e42df3833754edd81874bae4b27a121cedc01c1e..7d99c757aef7760a559808d510d7adb609dac738 100644 (file)
@@ -1,3 +1,8 @@
+2017-03-21  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * testsuite/lib/ld-lib.exp (check_shared_lib_support): Return
+       false for nios2-*-elf.
+
 2017-03-21  gingold  <gingold@gingold-Precision-7510>
 
        * ldlang.c (lang_check_section_addresses): Check only for
index 42cfe1c824f7f40249baf694295f9f8e501e543a..bdce739b66bacbff924c17142ae930bf9e0ad308 100644 (file)
@@ -1820,6 +1820,7 @@ proc check_shared_lib_support { } {
         && ![istarget msp430-*-*]
         && ![istarget mt-*-*]
         && ![istarget nds32*-*-*]
+        && ![istarget nios2-*-elf]
         && ![istarget or1k*-*-*]
         && ![istarget pj-*-*]
         && ![istarget pru-*-*]