ld: Add -z separate-code tests to frame.exp
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 19 Feb 2018 13:07:33 +0000 (05:07 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 19 Feb 2018 13:07:47 +0000 (05:07 -0800)
commitf61f94ec1bf9cb3d32b38a90a1f5c2d58ececbfb
tree4b6704192a9e84346cd898b6ca7462c3a93102d5
parente207bc53a407b274e0c771b781d73321b91612ce
ld: Add -z separate-code tests to frame.exp

On x86, "-z separate-code" leads to assertion fail at bfd/elf.c:5917.
Alsp skip tests if -shared isn't supported.

PR ld/22845
* testsuite/ld-elf/frame.exp: Skip if -shared isn't supported.
Add tests for "-z noseparate-code" and "-z separate-code".
Remove unsupported -shared check.
ld/ChangeLog
ld/testsuite/ld-elf/frame.exp