* elf32-m32c.c (m32c_offset_for_reloc): Fix local symbol
[binutils.git] / ld / testsuite / ld-powerpc / vxworks1-lib.s
blob9dfcb0fe364a25c06360dc5596dbc2669e725feb
1 .text
2 .globl foo
3 .type foo, @function
4 foo:
5 stwu r1,-24(r1)
6 mflr r0
7 stw r0,28(r1)
8 lis r30,__GOTT_BASE__@ha
9 lwz r30,__GOTT_BASE__@l(r30)
10 lwz r30,__GOTT_INDEX__(r30)
11 lwz r1,x@got(r30)
12 lwz r0,0(r1)
13 addi r0,r0,1
14 stw r0,0(r1)
15 bl slocal
16 bl sglobal@plt
17 bl sexternal@plt
18 lwz r0,28(r1)
19 mtlr r0
20 addi r1,r1,24
21 blr
22 .size foo, .-foo
24 .type slocal, @function
25 slocal:
26 blr
27 .size slocal, .-slocal
29 .globl sglobal
30 .type sglobal, @function
31 sglobal:
32 blr
33 .size sglobal, .-sglobal
35 .data
36 .4byte slocal
38 .comm x,4,4