aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/linkerscript/sections-padding.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/linkerscript/sections-padding.s')
-rw-r--r--test/ELF/linkerscript/sections-padding.s54
1 files changed, 0 insertions, 54 deletions
diff --git a/test/ELF/linkerscript/sections-padding.s b/test/ELF/linkerscript/sections-padding.s
deleted file mode 100644
index 91ced2ef7a1e..000000000000
--- a/test/ELF/linkerscript/sections-padding.s
+++ /dev/null
@@ -1,54 +0,0 @@
-# REQUIRES: x86
-# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
-
-## 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
-# YES: 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=YES2 %s
-# YES2: 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
-# 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
-# DEC: 66000003 09000003 09000003 09000003
-
-## Invalid hex value:
-# RUN: echo "SECTIONS { .mysec : { *(.mysec*) } =0x99XX }" > %t.script
-# RUN: not ld.lld -o %t.out --script %t.script %t 2>&1 \
-# RUN: | FileCheck --check-prefix=ERR2 %s
-# ERR2: invalid filler expression: 0x99XX
-
-## Check case with space between '=' and expression:
-# 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
-
-## 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
-
-.section .mysec.1,"a"
-.align 16
-.byte 0x66
-
-.section .mysec.2,"a"
-.align 16
-.byte 0x66
-
-.globl _start
-_start:
- nop