This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[patch] Disable shared library tests for nios2-*-elf
- From: Sandra Loosemore <sandra at codesourcery dot com>
- To: <binutils at sourceware dot org>
- Date: Tue, 21 Mar 2017 14:31:22 -0600
- Subject: [patch] Disable shared library tests for nios2-*-elf
- Authentication-results: sourceware.org; auth=none
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.
I've committed this patch to disable ld tests that try building shared
libraries on this target.
-Sandra
2017-03-21 Sandra Loosemore <sandra@codesourcery.com>
ld/
* testsuite/lib/ld-lib.exp (check_shared_lib_support): Return
false for nios2-*-elf.
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index 42cfe1c..bdce739 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -1820,6 +1820,7 @@ proc check_shared_lib_support { } {
&& ![istarget msp430-*-*]
&& ![istarget mt-*-*]
&& ![istarget nds32*-*-*]
+ && ![istarget nios2-*-elf]
&& ![istarget or1k*-*-*]
&& ![istarget pj-*-*]
&& ![istarget pru-*-*]