brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 2e6d1f1 Raw
37 lines · plain
1## If an object contains a common symbol with zero alignment,2## check we report it.3# RUN: yaml2obj --docnum=1 %s -o %t1.o4# RUN: not ld.lld %t1.o -o /dev/null 2>&1 | FileCheck %s5# CHECK: common symbol 'bar' has invalid alignment: 06 7--- !ELF8FileHeader:9  Class:           ELFCLASS6410  Data:            ELFDATA2LSB11  Type:            ET_REL12  Machine:         EM_X86_6413Symbols:14  - Name:            bar15    Type:            STT_FUNC16    Index:           SHN_COMMON17    Binding:         STB_GLOBAL18 19## If an object contains a common symbol with alignment greater20## than UINT32_MAX, check we report it.21# RUN: yaml2obj --docnum=2 %s -o %t2.o22# RUN: not ld.lld %t2.o -o /dev/null 2>&1 | FileCheck %s --check-prefix=BIG23# BIG: common symbol 'bar' has invalid alignment: 27164404921524 25--- !ELF26FileHeader:      27  Class:           ELFCLASS6428  Data:            ELFDATA2LSB29  Type:            ET_REL30  Machine:         EM_X86_6431Symbols:32  - Name:            bar33    Type:            STT_FUNC34    Index:           SHN_COMMON35    Value:           0x0000003F3F3F3F3F36    Binding:         STB_GLOBAL37