blob: ae4ae9532950e593d6293dca35d41223f5851310 [file] [log] [blame]
Simon Atanasyancb1175c2016-02-09 18:45:35 +00001# Check that llvm-readobj -mips-plt-got correctly shows .got section
2# content if there are some other zero-sized sections with the same
3# address as the .got. got-over.exe.elf-mips has zero-sized .data
4# section at the same offset .got section.
5
6RUN: llvm-readobj -mips-plt-got %p/Inputs/got-over.exe.elf-mips | FileCheck %s
7
8GOT-OBJ: Cannot find PLTGOT dynamic table tag.
9
10CHECK: Primary GOT {
11CHECK-NEXT: Canonical gp value: 0x418270
12CHECK-NEXT: Reserved entries [
13CHECK-NEXT: Entry {
14CHECK-NEXT: Address: 0x410280
15CHECK-NEXT: Access: -32752
16CHECK-NEXT: Initial: 0x0
17CHECK-NEXT: Purpose: Lazy resolver
18CHECK-NEXT: }
19CHECK-NEXT: Entry {
20CHECK-NEXT: Address: 0x410284
21CHECK-NEXT: Access: -32748
22CHECK-NEXT: Initial: 0x80000000
23CHECK-NEXT: Purpose: Module pointer (GNU extension)
24CHECK-NEXT: }
25CHECK-NEXT: ]
26CHECK-NEXT: Local entries [
27CHECK-NEXT: Entry {
28CHECK-NEXT: Address: 0x410288
29CHECK-NEXT: Access: -32744
30CHECK-NEXT: Initial: 0x4001B8
31CHECK-NEXT: }
32CHECK-NEXT: ]
33CHECK-NEXT: Global entries [
34CHECK-NEXT: Entry {
35CHECK-NEXT: Address: 0x41028C
36CHECK-NEXT: Access: -32740
37CHECK-NEXT: Initial: 0x0
38CHECK-NEXT: Value: 0x0
39CHECK-NEXT: Type: None
40CHECK-NEXT: Section: Undefined
41CHECK-NEXT: Name: _foo
42CHECK-NEXT: }
43CHECK-NEXT: ]
44CHECK-NEXT: Number of TLS and multi-GOT entries: 0
45CHECK-NEXT: }