brintos

brintos / llvm-project-archived public Read only

0
0
Text · 796 B · 7b5e4bc Raw
31 lines · plain
1# REQUIRES: x862# RUN: split-file %s %t3# RUN: llvm-mc -filetype=obj -triple=x86_64 %t/a.s -o %t/a.o4# RUN: cp %t/a.o %t/b.o5# RUN: ld.lld -r -T %t/lds %t/a.o %t/b.o -o %t/c.o6# RUN: llvm-readelf -r %t/c.o | FileCheck %s --check-prefix=REL7 8## If we swap two input .eh_frame, the r_offset values in relocations will be9## unordered.10# REL:          Offset11# REL-NEXT: 000000000000005012# REL-NEXT: 000000000000002013 14## Test we can handle the rare case.15# RUN: ld.lld %t/c.o -o %t/c16# RUN: llvm-dwarfdump --eh-frame %t/c | FileCheck %s17 18# CHECK: 00000000 00000014 00000000 CIE19# CHECK: 00000018 00000014 0000001c FDE cie=0000000020# CHECK: 00000030 00000014 00000034 FDE cie=0000000021 22#--- a.s23.cfi_startproc24nop25.cfi_endproc26 27#--- lds28SECTIONS {29  .eh_frame : { *b.o(.eh_frame) *a.o(.eh_frame) }30}31