Home | History | Annotate | Download | only in X86
      1 # RUN: llvm-mc -triple=x86_64-pc-linux -relocation-model=pic -filetype=obj -o %T/test_ELF_STT_FILE_FILE_x86-64.o %p/Inputs/ELF_STT_FILE_FILE.s
      2 # RUN: llvm-mc -triple=x86_64-pc-linux -relocation-model=pic -filetype=obj -o %T/test_ELF_STT_FILE_GLOBAL_x86-64.o %p/Inputs/ELF_STT_FILE_GLOBAL.s
      3 # RUN: llvm-mc -triple=x86_64-pc-linux -relocation-model=pic -filetype=obj -o %T/test_ELF_STT_FILE_x86-64.o %s
      4 # 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
      5 
      6 # Test that RTDyldELF ignores STT_FILE symbols, and in particular does
      7 # crash if we are relocating against a symbol that happens to have the
      8 # same name as an STT_FILE symbol.
      9 
     10 _main:
     11     movq    foo.c@GOTPCREL(%rip), %rax
     12     movq    bar.c@GOTPCREL(%rip), %rax
     13     movq    $0, %rax
     14     retq
     15