diff --git a/lld/test/MachO/eh_frame_bug.s b/lld/test/MachO/eh_frame_bug.s new file mode 100644 --- /dev/null +++ b/lld/test/MachO/eh_frame_bug.s @@ -0,0 +1,30 @@ +# REQUIRES: x86 +# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o +# RUN: %lld %t.o -o %.out + +.globl _main +_main: + retq + +.section __TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support +EHFrame0: + .balign 8 +LCIE: + .set Lset0,LECIE-LSCIE + .long Lset0 +LSCIE: + .long 0 + .byte 1 + .ascii "zR\0" + .byte 1 + .byte 1 + .byte 1 + .byte 1 + .byte 1 + .byte 1 + .byte 0x80+16, 1 + + .balign 8 +LECIE: + + .subsections_via_symbols