1 ## Check that 'llvm-objdump --no-print-imm-hex -dr' correctly prints relocations in executables.
3 # RUN: yaml2obj --docnum=1 %s -o %t
4 # RUN: llvm-objdump --no-print-imm-hex -dr %t | FileCheck %s --match-full-lines --strict-whitespace
5 # RUN: llvm-objdump --no-print-imm-hex -dr --no-leading-addr %t | FileCheck %s --check-prefix=NOADDR --match-full-lines --strict-whitespace
6 # RUN: llvm-objdump --no-print-imm-hex -dr --no-addresses %t | FileCheck %s --check-prefix=NOADDR --match-full-lines --strict-whitespace
8 # RUN: yaml2obj -DBITS=32 %s -o %t.32
9 # RUN: llvm-objdump --no-print-imm-hex -dr --no-leading-addr %t.32 | FileCheck %s --check-prefix=NOADDR --match-full-lines --strict-whitespace
11 # CHECK:0000000000400000 <.text>:
12 # CHECK-NEXT: 400000: 90 nop
13 # CHECK-NEXT: 400001: bf 10 00 40 00 movl $4194320, %edi # imm = 0x400010
14 # CHECK-NEXT: 0000000000400002: R_X86_64_32 .rodata
15 # CHECK-NEXT: 400006: e8 fc fe ff ff callq 0x3fff07 <puts+0x3fff07>
16 # CHECK-NEXT: 0000000000400007: R_X86_64_PLT32 puts-0x4
17 # CHECK-NEXT: 40000b: 90 nop
21 # NOADDR-NEXT: bf 10 00 40 00 movl $4194320, %edi # imm = 0x400010
22 # NOADDR-NEXT: R_X86_64_32 .rodata
23 # NOADDR-NEXT: e8 fc fe ff ff callq 0x3fff07 <puts+0x3fff07>
24 # NOADDR-NEXT: R_X86_64_PLT32 puts-0x4
29 Class: ELFCLASS[[BITS=64]]
42 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
45 Content: 90BF10004000E8FCFEFFFF90
53 Flags: [ SHF_INFO_LINK ]