xref: /llvm-project/llvm/test/ExecutionEngine/RuntimeDyld/X86/ELF-relaxed.s (revision 17ee427ef35d7521f90f28a7db83fddb4aadd475)
1# RUN: rm -rf %t && mkdir -p %t
2# RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj -o %t/file.o %p/Inputs/ELF_STT_FILE_GLOBAL.s
3# RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj -o %t/relaxed.o %s
4# RUN: llvm-rtdyld -triple=x86_64-pc-linux -verify %t/file.o %t/relaxed.o
5
6# Test that RTDyldELF does not crash with 'unimplemented relocation'
7
8_main:
9    movq    foo.c@GOTPCREL(%rip), %rax
10