aboutsummaryrefslogtreecommitdiff
path: root/test/elf/Mips/got-page-32.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/elf/Mips/got-page-32.test')
-rw-r--r--test/elf/Mips/got-page-32.test203
1 files changed, 0 insertions, 203 deletions
diff --git a/test/elf/Mips/got-page-32.test b/test/elf/Mips/got-page-32.test
deleted file mode 100644
index 00376da78663..000000000000
--- a/test/elf/Mips/got-page-32.test
+++ /dev/null
@@ -1,203 +0,0 @@
-# Check handling of R_MIPS_GOT_DISP / PAGE / OFST relocations.
-
-# RUN: yaml2obj -format=elf -docnum 1 %s > %t-so.o
-# RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-so.o
-# RUN: yaml2obj -format=elf -docnum 2 %s > %t-o.o
-# RUN: lld -flavor gnu -target mipsel -e T0 -o %t.exe %t-o.o %t.so
-# RUN: llvm-readobj -symbols -dyn-symbols -mips-plt-got %t.exe \
-# RUN: | FileCheck -check-prefix=GOT %s
-# RUN: llvm-objdump -s %t.exe | FileCheck -check-prefix=RAW %s
-
-# GOT: Symbol {
-# GOT: Name: T0 (1)
-# GOT-NEXT: Value: 0x400154
-# GOT: Symbol {
-# GOT: Name: LT1 (4)
-# GOT-NEXT: Value: 0x40017C
-# GOT: Symbol {
-# GOT: Name: LT2 (8)
-# GOT-NEXT: Value: 0x400180
-# GOT: Symbol {
-# GOT: Name: T1@ (1)
-# GOT-NEXT: Value: 0x0
-# GOT: Symbol {
-# GOT: Name: T2@ (4)
-# GOT-NEXT: Value: 0x0
-
-# GOT: Primary GOT {
-# GOT-NEXT: Canonical gp value: 0x408FF0
-# GOT-NEXT: Reserved entries [
-# GOT-NEXT: Entry {
-# GOT-NEXT: Address: 0x401000
-# GOT-NEXT: Access: -32752
-# GOT-NEXT: Initial: 0x0
-# GOT-NEXT: Purpose: Lazy resolver
-# GOT-NEXT: }
-# GOT-NEXT: Entry {
-# GOT-NEXT: Address: 0x401004
-# GOT-NEXT: Access: -32748
-# GOT-NEXT: Initial: 0x80000000
-# GOT-NEXT: Purpose: Module pointer (GNU extension)
-# GOT-NEXT: }
-# GOT-NEXT: ]
-# GOT-NEXT: Local entries [
-# GOT-NEXT: Entry {
-# GOT-NEXT: Address: 0x401008
-# GOT-NEXT: Access: -32744
-# GOT-NEXT: Initial: 0x40017C
-# GOT-NEXT: }
-# GOT-NEXT: Entry {
-# GOT-NEXT: Address: 0x40100C
-# GOT-NEXT: Access: -32740
-# GOT-NEXT: Initial: 0x400000
-# GOT-NEXT: }
-# GOT-NEXT: Entry {
-# GOT-NEXT: Address: 0x401010
-# GOT-NEXT: Access: -32736
-# GOT-NEXT: Initial: 0x400000
-# GOT-NEXT: }
-# GOT-NEXT: ]
-# GOT-NEXT: Global entries [
-# GOT-NEXT: Entry {
-# GOT-NEXT: Address: 0x401014
-# GOT-NEXT: Access: -32732
-# GOT-NEXT: Initial: 0x0
-# GOT-NEXT: Value: 0x0
-# GOT-NEXT: Type: Function (0x2)
-# GOT-NEXT: Section: Undefined (0x0)
-# GOT-NEXT: Name: T1@ (1)
-# GOT-NEXT: }
-# GOT-NEXT: Entry {
-# GOT-NEXT: Address: 0x401018
-# GOT-NEXT: Access: -32728
-# GOT-NEXT: Initial: 0x0
-# GOT-NEXT: Value: 0x0
-# GOT-NEXT: Type: Function (0x2)
-# GOT-NEXT: Section: Undefined (0x0)
-# GOT-NEXT: Name: T2@ (4)
-# GOT-NEXT: }
-# GOT-NEXT: ]
-# GOT-NEXT: Number of TLS and multi-GOT entries: 0
-# GOT-NEXT: }
-
-# RAW: Contents of section .text:
-# RAW-NEXT: 400154 24800000 18800000 24800000 28800000 $.......$...(...
-# ^ = -32732 (T1)
-# ^ = -32744 (LT1)
-# ^ -32732 (T1)
-# ^ -32728 (T2)
-# RAW-NEXT: 400164 1c800000 20800000 00000000 00000000 .... ...........
-# ^ -32740 (PAGE)
-# ^ -32736 (PAGE)
-# ^ T1 OFST
-# ^ T2 OFST
-# RAW-NEXT: 400174 7c010000 80010000 00000000 00000000 |...............
-# ^ LT1 OFST
-# ^ LT2 OFST
-
-# so.o
----
-FileHeader:
- Class: ELFCLASS32
- Data: ELFDATA2LSB
- Type: ET_REL
- Machine: EM_MIPS
- Flags: [EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_ARCH_32, EF_MIPS_ABI_O32]
-
-Sections:
-- Name: .text
- Type: SHT_PROGBITS
- Size: 8
- AddressAlign: 16
- Flags: [SHF_EXECINSTR, SHF_ALLOC]
-
-Symbols:
- Global:
- - Name: T1
- Section: .text
- Type: STT_FUNC
- Value: 0x0
- Size: 0x4
- - Name: T2
- Section: .text
- Type: STT_FUNC
- Value: 0x4
- Size: 0x4
-
-# o.o
----
-FileHeader:
- Class: ELFCLASS32
- Data: ELFDATA2LSB
- Type: ET_REL
- Machine: EM_MIPS
- Flags: [EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_ARCH_32, EF_MIPS_ABI_O32]
-
-Sections:
- - Name: .text
- Type: SHT_PROGBITS
- Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
- AddressAlign: 0x4
- Size: 0x30
-
- - Name: .rel.text
- Type: SHT_RELA
- Link: .symtab
- Info: .text
- AddressAlign: 0x04
- Relocations:
- - Offset: 0x0
- Symbol: T1
- Type: R_MIPS_GOT_DISP
- - Offset: 0x4
- Symbol: LT1
- Type: R_MIPS_GOT_DISP
- - Offset: 0x8
- Symbol: T1
- Type: R_MIPS_GOT_PAGE
- - Offset: 0xC
- Symbol: T2
- Type: R_MIPS_GOT_PAGE
- - Offset: 0x10
- Symbol: LT1
- Type: R_MIPS_GOT_PAGE
- - Offset: 0x14
- Symbol: LT2
- Type: R_MIPS_GOT_PAGE
- - Offset: 0x18
- Symbol: T1
- Type: R_MIPS_GOT_OFST
- - Offset: 0x1C
- Symbol: T2
- Type: R_MIPS_GOT_OFST
- - Offset: 0x20
- Symbol: LT1
- Type: R_MIPS_GOT_OFST
- - Offset: 0x24
- Symbol: LT2
- Type: R_MIPS_GOT_OFST
-
-Symbols:
- Local:
- - Name: .text
- Type: STT_SECTION
- Section: .text
-
- Global:
- - Name: T0
- Type: STT_FUNC
- Section: .text
- Size: 0x8
- - Name: LT1
- Type: STT_FUNC
- Section: .text
- Value: 0x28
- Size: 0x4
- - Name: LT2
- Type: STT_FUNC
- Section: .text
- Value: 0x2c
- Size: 0x4
- - Name: T1
- - Name: T2
-...