forked from OSchip/llvm-project
[LLD][ELF] - Convert common-symbol-alignment.s test to yaml.
This removes 2 precompiled binaries from the inputs. llvm-svn: 355500
This commit is contained in:
parent
d3ae87ee0d
commit
a033572d67
Binary file not shown.
Binary file not shown.
|
@ -1,12 +0,0 @@
|
|||
# REQUIRES: x86
|
||||
|
||||
## common-symbol-alignment.elf contains common symbol with zero alignment.
|
||||
# RUN: not ld.lld %S/Inputs/common-symbol-alignment.elf \
|
||||
# RUN: -o %t 2>&1 | FileCheck %s
|
||||
# CHECK: common symbol 'bar' has invalid alignment: 0
|
||||
|
||||
## common-symbol-alignment2.elf contains common symbol alignment greater
|
||||
## than UINT32_MAX.
|
||||
# RUN: not ld.lld %S/Inputs/common-symbol-alignment2.elf \
|
||||
# RUN: -o %t 2>&1 | FileCheck %s --check-prefix=BIG
|
||||
# BIG: common symbol 'bar' has invalid alignment: 271644049215
|
|
@ -0,0 +1,36 @@
|
|||
## If an object contains a common symbol with zero alignment,
|
||||
## check we report it.
|
||||
# RUN: yaml2obj -docnum=1 %s -o %t1.o
|
||||
# RUN: not ld.lld %t1.o -o %t 2>&1 | FileCheck %s
|
||||
# CHECK: common symbol 'bar' has invalid alignment: 0
|
||||
|
||||
--- !ELF
|
||||
FileHeader:
|
||||
Class: ELFCLASS64
|
||||
Data: ELFDATA2LSB
|
||||
Type: ET_REL
|
||||
Machine: EM_X86_64
|
||||
Symbols:
|
||||
Global:
|
||||
- Name: bar
|
||||
Type: STT_FUNC
|
||||
Index: SHN_COMMON
|
||||
|
||||
## If an object contains a common symbol with alignment greater
|
||||
## than UINT32_MAX, check we report it.
|
||||
# RUN: yaml2obj -docnum=2 %s -o %t2.o
|
||||
# RUN: not ld.lld %t2.o -o %t 2>&1 | FileCheck %s --check-prefix=BIG
|
||||
# BIG: common symbol 'bar' has invalid alignment: 271644049215
|
||||
|
||||
--- !ELF
|
||||
FileHeader:
|
||||
Class: ELFCLASS64
|
||||
Data: ELFDATA2LSB
|
||||
Type: ET_REL
|
||||
Machine: EM_X86_64
|
||||
Symbols:
|
||||
Global:
|
||||
- Name: bar
|
||||
Type: STT_FUNC
|
||||
Index: SHN_COMMON
|
||||
Value: 0x0000003F3F3F3F3F
|
Loading…
Reference in New Issue