Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
9890ad7a
Commit
9890ad7a
authored
Mar 08, 1995
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More typos
From-SVN: r9133
parent
b890f297
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
gcc/config/rs6000/eabi.asm
+15
-8
No files found.
gcc/config/rs6000/eabi.asm
View file @
9890ad7a
...
...
@@ -6,13 +6,19 @@
.
globl
__eabi
.
section
".got2"
,
"aw"
.
LCTOC1
=
.
+
32768
.
LCTOC1
=
.
#
+
32768
#
Table
of
addresses
.
Ltable
=
.
-
.
LCTOC1
.
long
.
Laddr
#
address
we
are
really
at
.
long
.
LCTOC1
#
address
we
are
really
at
.
Lgot
=
.
-
.
LCTOC1
.
long
_GLOBAL_OFFSET_TABLE_
#
normal
GOT
address
.
Lgot2s
=
.
-
.
LCTOC1
.
long
_GOT2_START_
#
-
mrelocatable
GOT
pointers
start
.
Lgot2e
=
.
-
.
LCTOC1
.
long
_GOT2_END_
#
-
mrelocatable
GOT
pointers
end
.
text
...
...
@@ -21,16 +27,17 @@
__eabi
:
mflr
0
bl
.
Laddr
#
get
current
address
.
Laddr
:
mflr
11
#
real
address
of
.
Ltable
lwz
12
,(.
Lptr
-
.
Laddr
)(
11
)
#
linker
generated
address
of
.
Ltable
add
12
,
12
,
11
#
correct
to
real
pointer
.
Laddr
:
mflr
12
#
real
address
of
.
Laddr
lwz
11
,(.
Lptr
-
.
Laddr
)(
12
)
#
linker
generated
address
of
.
LCTOC1
add
11
,
11
,
12
#
correct
to
real
pointer
lwz
12
,.
Ltable
(
11
)
#
get
linker
'
s
idea
of
where
.
Laddr
is
subf
.
12
,
12
,
11
#
calculate
difference
bc
4
,
2
,.
Lreloc
#
skip
if
we
need
to
relocate
#
Normal
program
,
load
up
register
2
mtlr
0
#
restore
link
register
lwz
2
,
4
(
11
)
#
normal
GOT
address
lwz
2
,
.
Lgot
(
11
)
#
normal
GOT
address
blr
#
We
need
to
relocate
the
.
got2
pointers
.
Don
'
t
load
register
2
...
...
@@ -38,8 +45,8 @@ __eabi: mflr 0
.
Lreloc
:
stwu
30
,
-
4
(
1
)
stwu
31
,
-
4
(
1
)
lwz
30
,
8
(
11
)
#
GOT
pointers
start
lwz
31
,
12
(
11
)
#
GOT
pointers
end
lwz
30
,
.
Lgot2s
(
11
)
#
GOT
pointers
start
lwz
31
,
.
Lgot2e
(
11
)
#
GOT
pointers
end
add
30
,
12
,
30
#
adjust
pointers
add
31
,
12
,
31
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment