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