From 34b00afa0396871f762190b8c436d2a5bf91c9e1 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sat, 17 Feb 2018 05:37:37 -0800 Subject: [PATCH] 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". --- ld/ChangeLog | 6 ++++++ ld/testsuite/ld-elf/binutils.exp | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) 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" -- 2.30.2