aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/testsuite/ld-elf/binutils.exp6
2 files changed, 10 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 628c278..811741f 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,6 +1,12 @@
2018-02-17 H.J. Lu <hongjiu.lu@intel.com>
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 <hongjiu.lu@intel.com>
+
+ PR ld/22845
* ld-elf/eh4.d: Pass -z max-page-size=0x200000 -z noseparate-code
to ld.
diff --git a/ld/testsuite/ld-elf/binutils.exp b/ld/testsuite/ld-elf/binutils.exp
index 748699d..290f158 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"