diff options
Diffstat (limited to 'lld/test/ELF/linkerscript/sections-padding.s')
-rw-r--r-- | lld/test/ELF/linkerscript/sections-padding.s | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lld/test/ELF/linkerscript/sections-padding.s b/lld/test/ELF/linkerscript/sections-padding.s index 2e914626bb9f..5ec0ddbe767a 100644 --- a/lld/test/ELF/linkerscript/sections-padding.s +++ b/lld/test/ELF/linkerscript/sections-padding.s @@ -4,30 +4,30 @@ ## Check that padding value works: # RUN: echo "SECTIONS { .mysec : { *(.mysec*) } =0x1122 }" > %t.script # RUN: ld.lld -o %t.out --script %t.script %t -# RUN: llvm-objdump -s %t.out | FileCheck -check-prefix=YES %s +# RUN: llvm-objdump -s %t.out | FileCheck --check-prefix=YES %s # YES: 66000011 22000011 22000011 22000011 # RUN: echo "SECTIONS { .mysec : { *(.mysec*) } =0x1100+0x22 }" > %t.script # RUN: ld.lld -o %t.out --script %t.script %t -# RUN: llvm-objdump -s %t.out | FileCheck -check-prefix=YES2 %s +# RUN: llvm-objdump -s %t.out | FileCheck --check-prefix=YES2 %s # YES2: 66000011 22000011 22000011 22000011 ## Confirming that address was correct: # RUN: echo "SECTIONS { .mysec : { *(.mysec*) } =0x99887766 }" > %t.script # RUN: ld.lld -o %t.out --script %t.script %t -# RUN: llvm-objdump -s %t.out | FileCheck -check-prefix=YES3 %s +# RUN: llvm-objdump -s %t.out | FileCheck --check-prefix=YES3 %s # YES3: 66998877 66998877 66998877 66998877 ## Default padding value is 0x00: # RUN: echo "SECTIONS { .mysec : { *(.mysec*) } }" > %t.script # RUN: ld.lld -o %t.out --script %t.script %t -# RUN: llvm-objdump -s %t.out | FileCheck -check-prefix=NO %s +# RUN: llvm-objdump -s %t.out | FileCheck --check-prefix=NO %s # NO: 66000000 00000000 00000000 00000000 ## Decimal value. # RUN: echo "SECTIONS { .mysec : { *(.mysec*) } =777 }" > %t.script # RUN: ld.lld -o %t.out --script %t.script %t -# RUN: llvm-objdump -s %t.out | FileCheck -check-prefix=DEC %s +# RUN: llvm-objdump -s %t.out | FileCheck --check-prefix=DEC %s # DEC: 66000003 09000003 09000003 09000003 ## Invalid hex value: @@ -39,22 +39,22 @@ ## Check case with space between '=' and a value: # RUN: echo "SECTIONS { .mysec : { *(.mysec*) } = 0x1122 }" > %t.script # RUN: ld.lld -o %t.out --script %t.script %t -# RUN: llvm-objdump -s %t.out | FileCheck -check-prefix=YES %s +# RUN: llvm-objdump -s %t.out | FileCheck --check-prefix=YES %s ## Check case with optional comma following output section command: # RUN: echo "SECTIONS { .mysec : { *(.mysec*) } =0x1122, .a : { *(.a*) } }" > %t.script # RUN: ld.lld -o %t.out --script %t.script %t -# RUN: llvm-objdump -s %t.out | FileCheck -check-prefix=YES %s +# RUN: llvm-objdump -s %t.out | FileCheck --check-prefix=YES %s ## Check we can use an artbitrary expression as a filler. # RUN: echo "SECTIONS { .mysec : { *(.mysec*) } = ((0x11<<8) | 0x22) }" > %t.script # RUN: ld.lld -o %t.out --script %t.script %t -# RUN: llvm-objdump -s %t.out | FileCheck -check-prefix=YES %s +# RUN: llvm-objdump -s %t.out | FileCheck --check-prefix=YES %s ## Check case with space between '=' and expression: # RUN: echo "SECTIONS { .mysec : { *(.mysec*) } =((0x11 << 8) | 0x22) }" > %t.script # RUN: ld.lld -o %t.out --script %t.script %t -# RUN: llvm-objdump -s %t.out | FileCheck -check-prefix=YES %s +# RUN: llvm-objdump -s %t.out | FileCheck --check-prefix=YES %s ## Check we report an error if expression value is larger than 32-bits. # RUN: echo "SECTIONS { .mysec : { *(.mysec*) } =(0x11 << 32) }" > %t.script |