ld: Replace regexp with string match
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 24 Aug 2017 15:33:16 +0000 (08:33 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 24 Aug 2017 15:33:16 +0000 (08:33 -0700)
commit074f6066845cb564751d4fa604e5f591c8265b41
tree07029927eff4850268aa19949b8e9ad95cbfb573
parent28e6a46bcb00e9972540e4d12a98cc3f6fbb9d87
ld: Replace regexp with string match

Replace regexp with string match to workaround dejagnu 1.4.4 which
complains:

ERROR: bad switch "-fPIE": must be -all, -about, -indices, -inline, -expanded, -line, -linestop, -lineanchor, -nocase, -start, or --

* testsuite/ld-i386/i386.exp (undefined_weak): Replace regexp
with string match.
* testsuite/ld-x86-64/x86-64.exp (undefined_weak): Likewise.
ld/ChangeLog
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-x86-64/x86-64.exp