File: mips-got-overlapped.test

package info (click to toggle)
llvm-toolchain-6.0 1%3A6.0.1-10
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 598,080 kB
  • sloc: cpp: 3,046,253; ansic: 595,057; asm: 271,965; python: 128,926; objc: 106,554; sh: 21,906; lisp: 10,191; pascal: 6,094; ml: 5,544; perl: 5,265; makefile: 2,227; cs: 2,027; xml: 686; php: 212; csh: 117
file content (45 lines) | stat: -rw-r--r-- 1,456 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Check that llvm-readobj -mips-plt-got correctly shows .got section
# content if there are some other zero-sized sections with the same
# address as the .got. got-over.exe.elf-mips has zero-sized .data
# section at the same offset .got section.

RUN: llvm-readobj -mips-plt-got %p/Inputs/got-over.exe.elf-mips | FileCheck %s

GOT-OBJ: Cannot find PLTGOT dynamic table tag.

CHECK:      Primary GOT {
CHECK-NEXT:   Canonical gp value: 0x418270
CHECK-NEXT:   Reserved entries [
CHECK-NEXT:     Entry {
CHECK-NEXT:       Address: 0x410280
CHECK-NEXT:       Access: -32752
CHECK-NEXT:       Initial: 0x0
CHECK-NEXT:       Purpose: Lazy resolver
CHECK-NEXT:     }
CHECK-NEXT:     Entry {
CHECK-NEXT:       Address: 0x410284
CHECK-NEXT:       Access: -32748
CHECK-NEXT:       Initial: 0x80000000
CHECK-NEXT:       Purpose: Module pointer (GNU extension)
CHECK-NEXT:     }
CHECK-NEXT:   ]
CHECK-NEXT:   Local entries [
CHECK-NEXT:     Entry {
CHECK-NEXT:       Address: 0x410288
CHECK-NEXT:       Access: -32744
CHECK-NEXT:       Initial: 0x4001B8
CHECK-NEXT:     }
CHECK-NEXT:   ]
CHECK-NEXT:   Global entries [
CHECK-NEXT:     Entry {
CHECK-NEXT:       Address: 0x41028C
CHECK-NEXT:       Access: -32740
CHECK-NEXT:       Initial: 0x0
CHECK-NEXT:       Value: 0x0
CHECK-NEXT:       Type: None
CHECK-NEXT:       Section: Undefined
CHECK-NEXT:       Name: _foo
CHECK-NEXT:     }
CHECK-NEXT:   ]
CHECK-NEXT:   Number of TLS and multi-GOT entries: 0
CHECK-NEXT: }