brintos

brintos / llvm-project-archived public Read only

0
0
Text · 830 B · 9c1fe40 Raw
30 lines · plain
1# REQUIRES: x862## Test that marker relocations are ignored and undefined symbols lead to errors.3 4# RUN: rm -rf %t && split-file %s %t && cd %t5# RUN: llvm-mc -filetype=obj -triple=x86_64 a.s -o a.o6# RUN: llvm-mc -filetype=obj -triple=x86_64 abi.s -o abi.o7# RUN: ld.lld a.o abi.o -o a8# RUN: llvm-readelf -s a | FileCheck %s9 10# CHECK: 00000000002{{.*}} 0 FUNC    GLOBAL DEFAULT [[#]] __gxx_personality_v011 12# RUN: not ld.lld a.o 2>&1 | FileCheck %s --check-prefix=ERR13 14# ERR:      error: undefined symbol: __gxx_personality_v015# ERR-NEXT: >>> referenced by a.o:(.eh_frame+0x12)16 17#--- a.s18.cfi_startproc19.cfi_personality 0, __gxx_personality_v020  ret21.cfi_endproc22 23.section .eh_frame,"a",@unwind24.reloc ., BFD_RELOC_NONE, ignore25 26#--- abi.s27.globl __gxx_personality_v028.type __gxx_personality_v0, @function29__gxx_personality_v0:30