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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.18.50/] [gas/] [testsuite/] [gas/] [mips/] [elf-rel10.s] - Blame information for rev 438

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

Line No. Rev Author Line
1 38 julius
        .globl  foo
2
        .ent    foo
3
foo:
4
        lui     $gp,%hi(%neg(%gp_rel(foo)))
5
        addiu   $gp,$gp,%lo(%neg(%gp_rel(foo)))
6
        daddu   $gp,$gp,$25
7
        .end    foo
8
 
9
        .ent    bar
10
bar:
11
        lui     $gp,%hi(%neg(%gp_rel(bar)))
12
        addiu   $gp,$gp,%lo(%neg(%gp_rel(bar)))
13
        daddu   $gp,$gp,$25
14
        .end    bar
15
 
16
        .ent    frob
17
frob:
18
        lw      $4,%got_page(foo)($gp)
19
        addiu   $4,$4,%got_ofst(foo)
20
 
21
        lw      $4,%got_page(foo + 0x1234)($gp)
22
        addiu   $4,$4,%got_ofst(foo + 0x1234)
23
 
24
        lw      $4,%got_page(bar)($gp)
25
        addiu   $4,$4,%got_ofst(bar)
26
 
27
        lw      $4,%got_page(bar + 0x332211)($gp)
28
        addiu   $4,$4,%got_ofst(bar + 0x332211)
29
 
30
        lw      $4,%got_page(frob)($gp)
31
        addiu   $4,$4,%got_ofst(frob)
32
        .end    frob

powered by: WebSVN 2.1.0

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