brintos

brintos / llvm-project-archived public Read only

0
0
Text · 814 B · 82a6fd8 Raw
16 lines · plain
1# RUN: rm -rf %t && mkdir -p %t2# RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj -o %t/test_ELF_STT_FILE_FILE_x86-64.o %p/Inputs/ELF_STT_FILE_FILE.s3# RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj -o %t/test_ELF_STT_FILE_GLOBAL_x86-64.o %p/Inputs/ELF_STT_FILE_GLOBAL.s4# RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj -o %t/test_ELF_STT_FILE_x86-64.o %s5# RUN: llvm-rtdyld -triple=x86_64-pc-linux -verify %t/test_ELF_STT_FILE_GLOBAL_x86-64.o %t/test_ELF_STT_FILE_FILE_x86-64.o %t/test_ELF_STT_FILE_x86-64.o6 7# Test that RTDyldELF ignores STT_FILE symbols, and in particular does8# crash if we are relocating against a symbol that happens to have the9# same name as an STT_FILE symbol.10 11_main:12    movq    foo.c@GOTPCREL(%rip), %rax13    movq    bar.c@GOTPCREL(%rip), %rax14    movq    $0, %rax15    retq16