brintos

brintos / llvm-project-archived public Read only

0
0
Text · 729 B · 4105491 Raw
30 lines · plain
1## Show that LLD can handle .eh_frame sections of different types.2 3# RUN: yaml2obj %s -o %t1.o -D TYPE=SHT_PROGBITS4# RUN: ld.lld %t1.o -o %t15# RUN: llvm-readobj -S %t1 | FileCheck %s6 7# RUN: yaml2obj %s -o %t2.o -D TYPE=SHT_X86_64_UNWIND8# RUN: ld.lld %t2.o -o %t29# RUN: llvm-readobj -S %t2 | FileCheck %s10 11# RUN: ld.lld %t1.o %t2.o -o %tboth12# RUN: llvm-readobj -S %tboth | FileCheck %s13 14# RUN: ld.lld -r %t1.o %t2.o -o %tboth.ro15# RUN: llvm-readobj -S %tboth.ro | FileCheck %s16 17# CHECK:      Name: .eh_frame18# CHECK-NEXT: Type: SHT_PROGBITS19 20--- !ELF21FileHeader:22  Class:   ELFCLASS6423  Data:    ELFDATA2LSB24  Type:    ET_REL25  Machine: EM_X86_6426Sections:27  - Name:  .eh_frame28    Type:  [[TYPE]]29    Flags: [ SHF_ALLOC ]30