diff options
-rw-r--r-- | ld/ChangeLog | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/shared.exp | 3 |
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" } |