29 lines · plain
1# REQUIRES: asserts2# RUN: llvm-mc -triple=x86_64-apple-macos10.9 -filetype=obj -o %t %s3# RUN: llvm-jitlink -noexec %t4#5# Verify that PC-begin candidate symbols have been sorted correctly when adding6# PC-begin edges for FDEs. In this test both _main and _X are at address zero,7# however we expect to select _main over _X as _X is common. If the sorting8# fails we'll trigger an assert in EHFrameEdgeFixer, otherwise this test will9# succeed.10 11 .section __TEXT,__text,regular,pure_instructions12 .build_version macos, 12, 0 sdk_version 13, 013 .globl _main14 .p2align 4, 0x9015_main:16 .cfi_startproc17 pushq %rbp18 .cfi_def_cfa_offset 1619 .cfi_offset %rbp, -1620 movq %rsp, %rbp21 .cfi_def_cfa_register %rbp22 xorl %eax, %eax23 popq %rbp24 retq25 .cfi_endproc26 27 .comm _X,4,228.subsections_via_symbols29