From: H.J. Lu Date: Sat, 17 Feb 2018 13:37:37 +0000 (-0800) Subject: ld: Add -z separate-code test for zero size section X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34b00afa0396871f762190b8c436d2a5bf91c9e1;p=binutils-gdb.git ld: Add -z separate-code test for zero size section PR ld/22845 * testsuite/ld-elf/binutils.exp (tls_opts): Add tests for "-z noseparate-code" and "-z separate-code". --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 628c27840bd..811741f45ab 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2018-02-17 H.J. Lu + + PR ld/22845 + * testsuite/ld-elf/binutils.exp (tls_opts): Add tests for + "-z noseparate-code" and "-z separate-code". + 2018-02-17 H.J. Lu PR ld/22845 diff --git a/ld/testsuite/ld-elf/binutils.exp b/ld/testsuite/ld-elf/binutils.exp index 748699d5d12..290f158710f 100644 --- a/ld/testsuite/ld-elf/binutils.exp +++ b/ld/testsuite/ld-elf/binutils.exp @@ -186,9 +186,11 @@ if { ![istarget "hppa64-*-*"] } { lappend tls_tests "tdata3" "tbss1" "tbss2" "tbss3" } set tls_opts { - "" + "-z noseparate-code" + "-z separate-code" "-z relro" - "-shared" + "-shared -z noseparate-code" + "-shared -z separate-code" "-shared -z relro" "-z max-page-size=0x100000" "-z max-page-size=0x100000 -z common-page-size=0x1000"