[binutils-gdb] ld: Add -z separate-code test for zero size section
H.J.Lu
hjl@sourceware.org
Sat Feb 17 13:44:00 GMT 2018
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=34b00afa0396871f762190b8c436d2a5bf91c9e1
commit 34b00afa0396871f762190b8c436d2a5bf91c9e1
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Feb 17 05:37:37 2018 -0800
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:
---
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 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"
More information about the Binutils-cvs
mailing list