1 RUN: llvm-readobj -A %p/Inputs/got-plt.exe.elf-mipsel | FileCheck %s
2 RUN: llvm-readelf -A %p/Inputs/got-plt.exe.elf-mipsel | FileCheck --check-prefix=GNU %s
5 CHECK-NEXT: Reserved entries [
7 CHECK-NEXT: Address: 0x410814
8 CHECK-NEXT: Initial: 0x0
9 CHECK-NEXT: Purpose: PLT lazy resolver
12 CHECK-NEXT: Address: 0x410818
13 CHECK-NEXT: Initial: 0x0
14 CHECK-NEXT: Purpose: Module pointer
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)
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)
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)
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
52 GNU-NEXT: Address Access Initial Sym.Val. Type Ndx Name
53 GNU-NEXT: 00410864 -32732(gp) 00000000 00000000 FUNC UND __gmon_start__
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
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