summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/linkerscript/non-alloc.s
diff options
context:
space:
mode:
Diffstat (limited to 'lld/test/ELF/linkerscript/non-alloc.s')
-rw-r--r--lld/test/ELF/linkerscript/non-alloc.s9
1 files changed, 4 insertions, 5 deletions
diff --git a/lld/test/ELF/linkerscript/non-alloc.s b/lld/test/ELF/linkerscript/non-alloc.s
index b830c74ea21..0ad1a7470aa 100644
--- a/lld/test/ELF/linkerscript/non-alloc.s
+++ b/lld/test/ELF/linkerscript/non-alloc.s
@@ -1,13 +1,12 @@
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
-# RUN: echo "SECTIONS { .foo : {*(foo)} }" > %t.script
+# RUN: echo "SECTIONS { .foo 0 : {*(foo)} }" > %t.script
# RUN: ld.lld -o %t1 --script %t.script %t -shared
# RUN: llvm-readobj -elf-output-style=GNU -s -l %t1 | FileCheck %s
-# Test that we create all necessary PT_LOAD. It is a harmless oddity that
-# foo ends in a PT_LOAD. We use to stop at the first non-alloc, causing
-# us to not create PT_LOAD for linker generated sections.
+# Test that we create all necessary PT_LOAD. We use to stop at the first
+# non-alloc, causing us to not create PT_LOAD for linker generated sections.
# CHECK: Program Headers:
# CHECK-NEXT: Type
@@ -19,7 +18,7 @@
# CHECK: Section to Segment mapping:
# CHECK-NEXT: Segment Sections...
# CHECK-NEXT: 00
-# CHECK-NEXT: 01 .foo .dynsym .hash .dynstr
+# CHECK-NEXT: 01 .dynsym .hash .dynstr
# CHECK-NEXT: 02 .text
# CHECK-NEXT: 03 .dynamic
OpenPOWER on IntegriCloud