1 ## Show that llvm-objdump can dump dynamic relocations.
2 ## Specifically, we are checking that the tags DT_RELA, DT_REL and DT_JMPREL
3 ## properly identify relocation tables.
5 # RUN: yaml2obj %s -o %t
6 # RUN: llvm-objdump --dynamic-reloc %t | FileCheck %s
7 # RUN: llvm-objdump -R %t | FileCheck %s
9 # CHECK: DYNAMIC RELOCATION RECORDS
10 # CHECK-NEXT: 0000000000000000 R_X86_64_RELATIVE *ABS*
11 # CHECK-NEXT: 0000000000000000 R_X86_64_JUMP_SLOT bar
12 # CHECK-NEXT: 0000000000000008 R_X86_64_NONE foo
30 Flags: [SHF_WRITE, SHF_ALLOC]
42 Type: R_X86_64_RELATIVE
54 Type: R_X86_64_JUMP_SLOT