Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-readobj / mips-plt.test
blobb130a67d0443fccd2036d55869fb09d69d96f2d7
1 RUN: llvm-readobj --mips-plt-got %p/Inputs/got-plt.exe.elf-mipsel | FileCheck %s
2 RUN: llvm-readelf --mips-plt-got %p/Inputs/got-plt.exe.elf-mipsel | FileCheck --check-prefix=GNU %s
4 CHECK:      PLT GOT {
5 CHECK-NEXT:   Reserved entries [
6 CHECK-NEXT:     Entry {
7 CHECK-NEXT:       Address: 0x410814
8 CHECK-NEXT:       Initial: 0x0
9 CHECK-NEXT:       Purpose: PLT lazy resolver
10 CHECK-NEXT:     }
11 CHECK-NEXT:     Entry {
12 CHECK-NEXT:       Address: 0x410818
13 CHECK-NEXT:       Initial: 0x0
14 CHECK-NEXT:       Purpose: Module pointer
15 CHECK-NEXT:     }
16 CHECK-NEXT:   ]
17 CHECK-NEXT:   Entries [
18 CHECK-NEXT:     Entry {
19 CHECK-NEXT:       Address: 0x41081C
20 CHECK-NEXT:       Initial: 0x4007C0
21 CHECK-NEXT:       Value: 0x0
22 CHECK-NEXT:       Type: Function (0x2)
23 CHECK-NEXT:       Section: Undefined (0x0)
24 CHECK-NEXT:       Name: puts@GLIBC_2.0 (71)
25 CHECK-NEXT:     }
26 CHECK-NEXT:     Entry {
27 CHECK-NEXT:       Address: 0x410820
28 CHECK-NEXT:       Initial: 0x4007C0
29 CHECK-NEXT:       Value: 0x0
30 CHECK-NEXT:       Type: Function (0x2)
31 CHECK-NEXT:       Section: Undefined (0x0)
32 CHECK-NEXT:       Name: __libc_start_main@GLIBC_2.0 (53)
33 CHECK-NEXT:     }
34 CHECK-NEXT:   ]
35 CHECK-NEXT: }
37 GNU:      Primary GOT:
38 GNU-NEXT:  Canonical gp value: 00418840
40 GNU:       Reserved entries:
41 GNU-NEXT:    Address     Access  Initial Purpose
42 GNU-NEXT:   00410850 -32752(gp) 00000000 Lazy resolver
43 GNU-NEXT:   00410854 -32748(gp) 80000000 Module pointer (GNU extension)
45 GNU:       Local entries:
46 GNU-NEXT:    Address     Access  Initial
47 GNU-NEXT:   00410858 -32744(gp) 004003d4
48 GNU-NEXT:   0041085c -32740(gp) 00410800
49 GNU-NEXT:   00410860 -32736(gp) 00000000
51 GNU:       Global entries:
52 GNU-NEXT:    Address     Access  Initial Sym.Val. Type    Ndx Name
53 GNU-NEXT:   00410864 -32732(gp) 00000000 00000000 FUNC    UND __gmon_start__
54 GNU-NEXT: PLT GOT:
56 GNU:       Reserved entries:
57 GNU-NEXT:    Address  Initial Purpose
58 GNU-NEXT:   00410814 00000000 PLT lazy resolver
59 GNU-NEXT:   00410818 00000000 Module pointer
61 GNU:       Entries:
62 GNU-NEXT:    Address  Initial Sym.Val. Type    Ndx Name
63 GNU-NEXT:   0041081c 004007c0 00000000 FUNC    UND puts
64 GNU-NEXT:   00410820 004007c0 00000000 FUNC    UND __libc_start_main