aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-04-11 11:10:18 +0930
committerAlan Modra <amodra@gmail.com>2018-04-11 11:13:49 +0930
commit18e404c4e2eb15443cc6dda93cbd38bdfeb17667 (patch)
tree6e5d7f1257cebe0b00bed49a43319b7b8350a4b2 /ld
parentb6572eb07009b41f192b494e761f43dfa7a9e324 (diff)
downloadgdb-18e404c4e2eb15443cc6dda93cbd38bdfeb17667.zip
gdb-18e404c4e2eb15443cc6dda93cbd38bdfeb17667.tar.gz
gdb-18e404c4e2eb15443cc6dda93cbd38bdfeb17667.tar.bz2
Silence nds32 pic warnings
Fixes: FAIL: Build pr22471a.so FAIL: Build pr22471b.so FAIL: Build pr22649-1.so FAIL: Build pr22649-2c.so FAIL: Build pr22649-2d.so FAIL: PR ld/20828 dynamic symbols with section GC (auxiliary shared library) FAIL: PR ld/20828 dynamic symbols with section GC (plain) FAIL: PR ld/20828 dynamic symbols with section GC (version script) FAIL: PR ld/20828 dynamic symbols with section GC (versioned shared library) FAIL: PR ld/20828 dynamic symbols with section GC (versioned) FAIL: PR ld/21233 dynamic symbols with section GC (auxiliary shared library) FAIL: Build pr22150.so FAIL: Build shared library for pr14170 FAIL: PR ld/21703 shared FAIL: Build shared library for broken linker script test FAIL: Build pr17068.so FAIL: -Bsymbolic-functions FAIL: Build pr20995.so FAIL: Build pr20995-2.so FAIL: Build pr22374 shared library * testsuite/ld-elf/shared.exp (AFLAGS_PIC): Add -mpic for nds32.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/testsuite/ld-elf/shared.exp3
2 files changed, 7 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 2f5a02e..08c4d0d 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2018-04-11 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-elf/shared.exp (AFLAGS_PIC): Add -mpic for nds32.
+
2018-04-09 Alan Modra <amodra@gmail.com>
* po/BLD-POTFILES.in: Regenerate.
diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp
index b0bcc0e..eb54eb9 100644
--- a/ld/testsuite/ld-elf/shared.exp
+++ b/ld/testsuite/ld-elf/shared.exp
@@ -39,6 +39,9 @@ set old_ASFLAGS $ASFLAGS
# This target requires extra GAS options when building code for shared
# libraries.
set AFLAGS_PIC ""
+if [istarget "nds32*-*"] {
+ append AFLAGS_PIC " -mpic"
+}
if [istarget "tic6x-*-*"] {
append AFLAGS_PIC " -mpic -mpid=near"
}