diff options
Diffstat (limited to 'test/MC/ELF/ifunc-reloc.s')
-rw-r--r-- | test/MC/ELF/ifunc-reloc.s | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/MC/ELF/ifunc-reloc.s b/test/MC/ELF/ifunc-reloc.s new file mode 100644 index 0000000000..01954631cc --- /dev/null +++ b/test/MC/ELF/ifunc-reloc.s @@ -0,0 +1,16 @@ +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r | FileCheck %s + .global sym + .type sym, @gnu_indirect_function +alias: + .global alias + .type alias, @function + .set sym, alias + + + callq sym + +// CHECK: Relocations [ +// CHECK-NEXT: Section (2) .rela.text { +// CHECK-NEXT: 0x1 R_X86_64_PC32 sym 0xFFFFFFFFFFFFFFFC +// CHECK-NEXT: } +// CHECK-NEXT: ] |