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".
This commit is contained in:
H.J. Lu
2018-02-17 05:37:37 -08:00
parent 92d9e363b5
commit 34b00afa03
2 changed files with 10 additions and 2 deletions

View 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

View 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"