Commit | Line | Data |
---|---|---|
c224138d RS |
1 | #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 | .* <f3>: | |
24 | #... | |
25 | .* lw a1,-32744\(gp\) | |
26 | #pass |