Pass $NOPIE_CFLAGS and $NOPIE_LDFLAGS to more ELF tests
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 22 Jun 2017 16:53:33 +0000 (09:53 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 22 Jun 2017 16:53:33 +0000 (09:53 -0700)
commit9d1c54ed7f3a4a70f35f85658c311697c17a95f5
tree857f43f1ee6abdb2e92a990afe8077b809ca36e5
parent16892a0323ce6cf41ca80e384dfba12524247902
Pass $NOPIE_CFLAGS and $NOPIE_LDFLAGS to more ELF tests

PR ld/21090
* testsuite/ld-gc/gc.ex: Compile tmpdir/pr14265.o with
$NOPIE_CFLAGS.
* testsuite/ld-i386/i386.exp: Pass $NOPIE_CFLAGS and
$NOPIE_LDFLAGS if non-PIE is required.
* testsuite/ld-i386/no-plt.exp (NOPIE_CFLAGS): New.
(NOPIE_LDFLAGS): Likewise.
Pass $NOPIE_LDFLAGS if non-PIE is required.
* testsuite/ld-shared/shared.exp: Compile tmpdir/sh1np.o with
$NOPIE_CFLAGS.
ld/ChangeLog
ld/testsuite/ld-gc/gc.exp
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-i386/no-plt.exp
ld/testsuite/ld-shared/shared.exp