ld: Add -z separate-code test for zero size section
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 17 Feb 2018 13:37:37 +0000 (05:37 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 17 Feb 2018 13:38:14 +0000 (05:38 -0800)
PR ld/22845
* testsuite/ld-elf/binutils.exp (tls_opts): Add tests for
"-z noseparate-code" and "-z separate-code".

ld/ChangeLog
ld/testsuite/ld-elf/binutils.exp

index 628c27840bd6abae87ecfddf22c38c93f940d2ab..811741f45ab8e8fb50d254567ffe02f3894fe240 100644 (file)
@@ -1,3 +1,9 @@
+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
index 748699d5d126e8b39003da919d0c4b48c06c71df..290f158710f3f17c9538338003b4f4be60a7e6e2 100644 (file)
@@ -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"