OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [binutils-2.20.1/] [ld/] [testsuite/] [ld-mips-elf/] [got-page-3.d] - Blame information for rev 816

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 205 julius
#name: GOT page test 3
2
#source: got-page-3a.s
3
#source: got-page-3b.s
4
#source: got-page-3c.s
5
#as: -mips3
6
#ld: -T got-page-1.ld -shared
7
#objdump: -dr
8
#
9
# got-page-3a.s and got-page-3b.s should get assigned the same GOT,
10
# with a page estimate of 10.  Thus the first page entry has offset
11
# -32744 (-32768 + 0x8000 - ELF_MIPS_GP_OFFSET + MIPS_RESERVED_GOTNO)
12
# and the first global entry has an offset -32744 + 40 == -32704.
13
#
14
# got-page-3c.s should get its own GOT, and needs no page entries.
15
# The first global symbol should therefore be at offset -32744.
16
#
17
#...
18
.*      lw      a0,-32744\(gp\)
19
.*      addiu   a0,a0,.*
20
#...
21
.*      lw      a1,-32704\(gp\)
22
#...
23
.* :
24
#...
25
.*      lw      a1,-32744\(gp\)
26
#pass

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.