1 ## Test that hexagon machine-specific tags can be dumped.
2 # RUN: yaml2obj --docnum=1 -o %t.hex \
3 # RUN: %S/../llvm-readobj/Inputs/elf-dynamic-tags-machine-specific.yaml
4 # RUN: llvm-objdump -p %t.hex | FileCheck %s --check-prefix=HEXAGON
6 # HEXAGON: Dynamic Section:
7 # HEXAGON-NEXT: HASH 0x0000000000001000
8 # HEXAGON-NEXT: HEXAGON_SYMSZ 0x0000000000000010
9 # HEXAGON-NEXT: HEXAGON_VER 0x0000000000001000
10 # HEXAGON-NEXT: HEXAGON_PLT 0x0000000000001000
11 # HEXAGON-NEXT: <unknown:>0x1234abcd 0x0000000000000001
14 ## Test that MIPS machine-specific tags can be dumped.
15 # RUN: yaml2obj --docnum=2 -o %t.mips \
16 # RUN: %S/../llvm-readobj/Inputs/elf-dynamic-tags-machine-specific.yaml
17 # RUN: llvm-objdump -p %t.mips | FileCheck %s --check-prefix=MIPS
19 # MIPS: Dynamic Section:
20 # MIPS-NEXT: HASH 0x0000000000001000
21 # MIPS-NEXT: MIPS_RLD_VERSION 0x0000000012345678
22 # MIPS-NEXT: MIPS_TIME_STAMP 0x0000000011223344
23 # MIPS-NEXT: MIPS_ICHECKSUM 0x0000000011112222
24 # MIPS-NEXT: MIPS_IVERSION 0x0000000000000001
25 # MIPS-NEXT: MIPS_FLAGS 0x0000000011111111
26 # MIPS-NEXT: MIPS_BASE_ADDRESS 0x0000000087654321
27 # MIPS-NEXT: MIPS_MSYM 0x0000000000001000
28 # MIPS-NEXT: MIPS_CONFLICT 0x0000000000001000
29 # MIPS-NEXT: MIPS_LIBLIST 0x0000000000001000
30 # MIPS-NEXT: MIPS_LOCAL_GOTNO 0x0000000000000001
31 # MIPS-NEXT: MIPS_CONFLICTNO 0x0000000000000001
32 # MIPS-NEXT: MIPS_LIBLISTNO 0x0000000000000001
33 # MIPS-NEXT: MIPS_SYMTABNO 0x0000000000000001
34 # MIPS-NEXT: MIPS_UNREFEXTNO 0x0000000000000000
35 # MIPS-NEXT: MIPS_GOTSYM 0x0000000000000000
36 # MIPS-NEXT: MIPS_HIPAGENO 0x0000000088776655
37 # MIPS-NEXT: MIPS_RLD_MAP 0x0000000000001000
38 # MIPS-NEXT: MIPS_DELTA_CLASS 0x0000000000001000
39 # MIPS-NEXT: MIPS_DELTA_CLASS_NO 0x0000000000000001
40 # MIPS-NEXT: MIPS_DELTA_INSTANCE 0x0000000000001000
41 # MIPS-NEXT: MIPS_DELTA_INSTANCE_NO0x0000000000000001
42 # MIPS-NEXT: MIPS_DELTA_RELOC 0x0000000000001000
43 # MIPS-NEXT: MIPS_DELTA_RELOC_NO 0x0000000000000001
44 # MIPS-NEXT: MIPS_DELTA_SYM 0x0000000000001000
45 # MIPS-NEXT: MIPS_DELTA_SYM_NO 0x0000000000000001
46 # MIPS-NEXT: MIPS_DELTA_CLASSSYM 0x0000000000001000
47 # MIPS-NEXT: MIPS_DELTA_CLASSSYM_NO0x0000000000000001
48 # MIPS-NEXT: MIPS_CXX_FLAGS 0x0000000088887777
49 # MIPS-NEXT: MIPS_PIXIE_INIT 0x0000000000001000
50 # MIPS-NEXT: MIPS_LOCALPAGE_GOTIDX0x0000000000000001
51 # MIPS-NEXT: MIPS_LOCAL_GOTIDX 0x0000000000000001
52 # MIPS-NEXT: MIPS_HIDDEN_GOTIDX 0x0000000000000001
53 # MIPS-NEXT: MIPS_PROTECTED_GOTIDX0x0000000000000001
54 # MIPS-NEXT: MIPS_OPTIONS 0x0000000000001000
55 # MIPS-NEXT: MIPS_INTERFACE 0x0000000000001000
56 # MIPS-NEXT: MIPS_DYNSTR_ALIGN 0x0000000088888888
57 # MIPS-NEXT: MIPS_INTERFACE_SIZE 0x0000000000000010
58 # MIPS-NEXT: MIPS_RLD_TEXT_RESOLVE_ADDR0x0000000000000008
59 # MIPS-NEXT: MIPS_PERF_SUFFIX 0x0000000000000000
60 # MIPS-NEXT: MIPS_COMPACT_SIZE 0x0000000000000010
61 # MIPS-NEXT: MIPS_GP_VALUE 0x0000000000000001
62 # MIPS-NEXT: MIPS_AUX_DYNAMIC 0x0000000000001000
63 # MIPS-NEXT: MIPS_PLTGOT 0x0000000000001000
64 # MIPS-NEXT: MIPS_RWPLT 0x0000000000001000
65 # MIPS-NEXT: MIPS_RLD_MAP_REL 0x0000000000001000
66 # MIPS-NEXT: <unknown:>0x1234abcd 0x0000000000000001
69 ## Test that PPC machine-specific tags can be dumped.
70 # RUN: yaml2obj --docnum=3 -o %t.ppc \
71 # RUN: %S/../llvm-readobj/Inputs/elf-dynamic-tags-machine-specific.yaml
72 # RUN: llvm-objdump -p %t.ppc | FileCheck %s --check-prefix=PPC
74 # PPC: Dynamic Section:
75 # PPC-NEXT: PPC_GOT 0x000200c0
76 # PPC-NEXT: PPC_OPT 0x00000001
77 # PPC-NEXT: <unknown:>0x1234abcd 0x00000001
80 ## Test that PPC64 machine-specific tags can be dumped.
81 # RUN: yaml2obj --docnum=4 -o %t.ppc64 \
82 # RUN: %S/../llvm-readobj/Inputs/elf-dynamic-tags-machine-specific.yaml
83 # RUN: llvm-objdump -p %t.ppc64 | FileCheck %s --check-prefix=PPC64
85 # PPC64: Dynamic Section:
86 # PPC64-NEXT: HASH 0x0000000000001000
87 # PPC64-NEXT: PPC64_GLINK 0x0000000000001000
88 # PPC64-NEXT: <unknown:>0x1234abcd 0x0000000000000001