summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/string-table.s
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-11-21 22:19:32 +0000
committerRui Ueyama <ruiu@google.com>2015-11-21 22:19:32 +0000
commite79b09a6163f3350757cd63087617d0cb77c4114 (patch)
tree44da9e90900f29248b409ce7c74a78b2fd0f9fee /lld/test/ELF/string-table.s
parent6290dbc0f7f71dbf9e5408a1b4222cbbfba43bdb (diff)
downloadbcm5719-llvm-e79b09a6163f3350757cd63087617d0cb77c4114.tar.gz
bcm5719-llvm-e79b09a6163f3350757cd63087617d0cb77c4114.zip
ELF: Make .note.GNU-stack more compatible with traditional linkers.
With this patch, lld creates PT_GNU_STACK segments only when all input files have .note.GNU-stack sections. This is in line with other linkers with a minor difference (we don't care about .note.GNU-stack rwx bits as you can always remove .note.GNU-stack sections instead of setting x bit.) At least, NetBSD loader does not understand PT_GNU_STACK segments and reject any executables that have the section. This patch makes lld compatible with such operating systems. llvm-svn: 253797
Diffstat (limited to 'lld/test/ELF/string-table.s')
-rw-r--r--lld/test/ELF/string-table.s2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/test/ELF/string-table.s b/lld/test/ELF/string-table.s
index 52a40d790d8..5e085074a09 100644
--- a/lld/test/ELF/string-table.s
+++ b/lld/test/ELF/string-table.s
@@ -19,7 +19,7 @@ _start:
// CHECK-NEXT: Flags [
// CHECK-NEXT: SHF_ALLOC
// CHECK-NEXT: ]
-// CHECK-NEXT: Address: 0x10120
+// CHECK-NEXT: Address: 0x100E8
// CHECK: Name: foobar
// CHECK-NEXT: Type: SHT_PROGBITS
OpenPOWER on IntegriCloud