diff options
Diffstat (limited to 'llvm/test/tools/llvm-objcopy/ELF/binary-input.test')
-rw-r--r-- | llvm/test/tools/llvm-objcopy/ELF/binary-input.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objcopy/ELF/binary-input.test b/llvm/test/tools/llvm-objcopy/ELF/binary-input.test index 8eef7f772f9..f232296ded8 100644 --- a/llvm/test/tools/llvm-objcopy/ELF/binary-input.test +++ b/llvm/test/tools/llvm-objcopy/ELF/binary-input.test @@ -110,3 +110,11 @@ # CHECK-NEXT: Section: Absolute # CHECK-NEXT: } # CHECK-NEXT: ] + +## The alignment can be changed by --set-section-alignment. +# RUN: llvm-objcopy -I binary -O elf64-x86-64 --set-section-alignment .data=8 %t.x-txt %t2.o +# RUN: llvm-readobj --sections %t2.o | FileCheck --check-prefix=ALIGN %s + +# ALIGN: Name: .data +# ALIGN: AddressAlignment: +# ALIGN-SAME: 8{{$}} |