diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-09-20 13:12:07 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-09-20 13:12:07 +0000 |
| commit | 6d38e4dbe1603c916343d25c47b4c9ced283455c (patch) | |
| tree | c92e5e5cb10bf903246407067a941f3bd537d4ec /lld/test/ELF/linkerscript/align-empty.s | |
| parent | 2e721aa8c8f14ad00fb8ee3e6c8bff4e30d497a3 (diff) | |
| download | bcm5719-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.s | 14 |
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 |

