xref: /llvm-project-15.0.7/llvm/test/ExecutionEngine/RuntimeDyld/X86/ELF_STT_FILE.s (revision 17ee427e)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: rm -rf %t && mkdir -p %t
2# 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.s
3# 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.s
4# RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj -o %t/test_ELF_STT_FILE_x86-64.o %s
5# 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.o
6
7# Test that RTDyldELF ignores STT_FILE symbols, and in particular does
8# crash if we are relocating against a symbol that happens to have the
9# same name as an STT_FILE symbol.
10
11_main:
12    movq    foo.c@GOTPCREL(%rip), %rax
13    movq    bar.c@GOTPCREL(%rip), %rax
14    movq    $0, %rax
15    retq
16

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026