summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/linkerscript/align-empty.s
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-09-20 13:12:07 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-09-20 13:12:07 +0000
commit6d38e4dbe1603c916343d25c47b4c9ced283455c (patch)
treec92e5e5cb10bf903246407067a941f3bd537d4ec /lld/test/ELF/linkerscript/align-empty.s
parent2e721aa8c8f14ad00fb8ee3e6c8bff4e30d497a3 (diff)
downloadbcm5719-llvm-6d38e4dbe1603c916343d25c47b4c9ced283455c.tar.gz
bcm5719-llvm-6d38e4dbe1603c916343d25c47b4c9ced283455c.zip
Remove empty section commands.
We were already not creating them, and with this other parts of the code don't have to worry about them. llvm-svn: 281968
Diffstat (limited to 'lld/test/ELF/linkerscript/align-empty.s')
-rw-r--r--lld/test/ELF/linkerscript/align-empty.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/lld/test/ELF/linkerscript/align-empty.s b/lld/test/ELF/linkerscript/align-empty.s
new file mode 100644
index 00000000000..4af943f764f
--- /dev/null
+++ b/lld/test/ELF/linkerscript/align-empty.s
@@ -0,0 +1,14 @@
+# REQUIRES: x86
+# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
+
+# RUN: echo "SECTIONS { \
+# RUN: abc : { } \
+# RUN: . = ALIGN(0x1000); \
+# RUN: .text : { *(.text) } \
+# RUN: }" > %t.script
+# RUN: ld.lld -o %t1 --script %t.script %t -shared
+# RUN: llvm-objdump -section-headers %t1 | FileCheck %s
+# CHECK: Sections:
+# CHECK-NEXT: Idx Name Size Address
+# CHECK-NEXT: 0 00000000 0000000000000000
+# CHECK-NEXT: 1 .text 00000000 0000000000001000
OpenPOWER on IntegriCloud