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
bd0e50ee
Commit
bd0e50ee
authored
Jul 07, 2008
by
Mark Shinwell
Committed by
Nathan Sidwell
Jul 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
From-SVN: r137558
parent
368b55f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
5 deletions
+35
-5
gcc/ChangeLog
+4
-0
gcc/config/m68k/lb1sf68.asm
+31
-5
No files found.
gcc/ChangeLog
View file @
bd0e50ee
2008
-
07
-
07
Mark
Shinwell
<
shinwell
@codesourcery
.
com
>
*
config
/
m68k
/
lb1sf68
.
asm
:
Add
PIC
macros
for
Linux
targets
.
2008
-
07
-
07
Maxim
Kuvyrkov
<
maxim
@codesourcery
.
com
>
2008
-
07
-
07
Maxim
Kuvyrkov
<
maxim
@codesourcery
.
com
>
Nathan
Sidwell
<
nathan
@codesourcery
.
com
>
Nathan
Sidwell
<
nathan
@codesourcery
.
com
>
...
...
gcc/config/m68k/lb1sf68.asm
View file @
bd0e50ee
...
@@ -129,10 +129,11 @@ Boston, MA 02110-1301, USA. */
...
@@ -129,10 +129,11 @@ Boston, MA 02110-1301, USA. */
#
else
/*
__PIC__
*/
#
else
/*
__PIC__
*/
/*
Common
for
-
mid
-
shared
-
libary
and
-
msep
-
data
*/
/*
Common
for
Linux
and
uClinux
,
the
latter
with
either
-
mid
-
shared
-
library
or
-
msep
-
data
.
*/
.
macro
PICCALL
addr
.
macro
PICCALL
addr
#
if
defined
(
__mcoldfire__
)
&&
!
defined
(
__mcfisab__
)
#
if
defined
(
__mcoldfire__
)
&&
!
defined
(
__mcfisab__
)
&&
!
defined
(
__mcfisac__
)
lea
\
addr
-
.
-
8
,
a0
lea
\
addr
-
.
-
8
,
a0
jsr
pc
@
(
a0
)
jsr
pc
@
(
a0
)
#
else
#
else
...
@@ -141,6 +142,9 @@ Boston, MA 02110-1301, USA. */
...
@@ -141,6 +142,9 @@ Boston, MA 02110-1301, USA. */
.
endm
.
endm
.
macro
PICJUMP
addr
.
macro
PICJUMP
addr
/*
ISA
C
has
no
bra
.
l
instruction
,
and
since
this
assembly
file
gets
assembled
into
multiple
object
files
,
we
avoid
the
bra
instruction
entirely
.
*/
#
if
defined
(
__mcoldfire__
)
&&
!
defined
(
__mcfisab__
)
#
if
defined
(
__mcoldfire__
)
&&
!
defined
(
__mcfisab__
)
lea
\
addr
-
.
-
8
,
a0
lea
\
addr
-
.
-
8
,
a0
jmp
pc
@
(
a0
)
jmp
pc
@
(
a0
)
...
@@ -149,7 +153,11 @@ Boston, MA 02110-1301, USA. */
...
@@ -149,7 +153,11 @@ Boston, MA 02110-1301, USA. */
#
endif
#
endif
.
endm
.
endm
#
if
defined
(
__ID_SHARED_LIBRARY__
)
#
if
defined
(
__uClinux__
)
/*
Versions
for
uClinux
*/
#
if
defined
(
__ID_SHARED_LIBRARY__
)
/*
-
mid
-
shared
-
library
versions
*/
/*
-
mid
-
shared
-
library
versions
*/
...
@@ -163,7 +171,7 @@ Boston, MA 02110-1301, USA. */
...
@@ -163,7 +171,7 @@ Boston, MA 02110-1301, USA. */
movel
\
sym
@
GOT
(
\
areg
),
sp
@
-
movel
\
sym
@
GOT
(
\
areg
),
sp
@
-
.
endm
.
endm
#
else
/*
!
__ID_SHARED_LIBRARY__
*/
#
else
/*
!
__ID_SHARED_LIBRARY__
*/
/*
Versions
for
-
msep
-
data
*/
/*
Versions
for
-
msep
-
data
*/
...
@@ -175,7 +183,25 @@ Boston, MA 02110-1301, USA. */
...
@@ -175,7 +183,25 @@ Boston, MA 02110-1301, USA. */
movel
\
sym
@
GOT
(
a5
),
sp
@
-
movel
\
sym
@
GOT
(
a5
),
sp
@
-
.
endm
.
endm
#
endif
/*
!
__ID_SHARED_LIBRARY__
*/
#
endif
#
else
/*
!
__uClinux__
*/
/*
Versions
for
Linux
*/
.
macro
PICLEA
sym
,
reg
movel
#
_GLOBAL_OFFSET_TABLE_
@
GOTPC
,
\
reg
lea
(
-
6
,
pc
,
\
reg
),
\
reg
movel
\
sym
@
GOT
(
\
reg
),
\
reg
.
endm
.
macro
PICPEA
sym
,
areg
movel
#
_GLOBAL_OFFSET_TABLE_
@
GOTPC
,
\
areg
lea
(
-
6
,
pc
,
\
areg
),
\
areg
movel
\
sym
@
GOT
(
\
areg
),
sp
@
-
.
endm
#
endif
#
endif
/*
__PIC__
*/
#
endif
/*
__PIC__
*/
...
...
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