summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-aarch64/relocs.ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-aarch64/relocs.ld')
-rw-r--r--ld/testsuite/ld-aarch64/relocs.ld4
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/testsuite/ld-aarch64/relocs.ld b/ld/testsuite/ld-aarch64/relocs.ld
index f42176e64d..77adac8b46 100644
--- a/ld/testsuite/ld-aarch64/relocs.ld
+++ b/ld/testsuite/ld-aarch64/relocs.ld
@@ -16,4 +16,8 @@ SECTIONS
. = 0x12340000;
.far : { *(.far) }
.ARM.attributes 0 : { *(.ARM.atttributes) }
+ /* Providing a .data section triggers a non-executable segment to be
+ generated, which gives somewhere else for the linker to put the TLS
+ segment without creating a RWX permissioned one. */
+ .data : { *(.data) }
}