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
8fbd2dc7
Commit
8fbd2dc7
authored
Nov 26, 1997
by
Michael Meissner
Committed by
Michael Meissner
Nov 26, 1997
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix -msdata=sysv and pass -dynamic-linker if not already passed
From-SVN: r16768
parent
a226df46
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
5 deletions
+21
-5
gcc/ChangeLog
+8
-0
gcc/config/rs6000/linux.h
+3
-1
gcc/config/rs6000/rs6000.c
+10
-4
No files found.
gcc/ChangeLog
View file @
8fbd2dc7
Wed Nov 26 15:47:30 1997 Michael Meissner <meissner@cygnus.com>
* rs6000.c (SMALL_DATA_REG): Register to use for small data relocs.
(print_operand): Use SMALL_DATA_REG for the register involved in
small data relocations.
(print_operand_address): Ditto.
* rs6000/linux.h (LINK_SPEC): Pass -dynamic-linker /lib/ld.so.1 if
-dynamic linker is not used.
* rs6000.md (call insns): For local calls, use @local suffix under
System V. Don't use @plt under Solaris.
...
...
gcc/config/rs6000/linux.h
View file @
8fbd2dc7
...
...
@@ -28,7 +28,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef LINK_SPEC
#define LINK_SPEC "-m elf32ppc %{shared:-shared} \
%{!shared: \
%{!static: %{rdynamic:-export-dynamic}} \
%{!static: \
%{rdynamic:-export-dynamic} \
%{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
%{static:-static}}"
#undef LIB_DEFAULT_SPEC
...
...
gcc/config/rs6000/rs6000.c
View file @
8fbd2dc7
...
...
@@ -2342,8 +2342,10 @@ rs6000_init_expanders ()
#if TARGET_ELF
#define SMALL_DATA_RELOC ((rs6000_sdata == SDATA_EABI) ? "sda21" : "sdarel")
#define SMALL_DATA_REG ((rs6000_sdata == SDATA_EABI) ? 0 : 13)
#else
#define SMALL_DATA_RELOC "sda21"
#define SMALL_DATA_REG 0
#endif
void
...
...
@@ -2542,7 +2544,8 @@ print_operand (file, x, code)
else
output_address
(
plus_constant
(
XEXP
(
x
,
0
),
4
));
if
(
small_data_operand
(
x
,
GET_MODE
(
x
)))
fprintf
(
file
,
"@%s(%s)"
,
SMALL_DATA_RELOC
,
reg_names
[
0
]);
fprintf
(
file
,
"@%s(%s)"
,
SMALL_DATA_RELOC
,
reg_names
[
SMALL_DATA_REG
]);
}
return
;
...
...
@@ -2770,7 +2773,8 @@ print_operand (file, x, code)
else
output_address
(
plus_constant
(
XEXP
(
x
,
0
),
8
));
if
(
small_data_operand
(
x
,
GET_MODE
(
x
)))
fprintf
(
file
,
"@%s(%s)"
,
SMALL_DATA_RELOC
,
reg_names
[
0
]);
fprintf
(
file
,
"@%s(%s)"
,
SMALL_DATA_RELOC
,
reg_names
[
SMALL_DATA_REG
]);
}
return
;
...
...
@@ -2819,7 +2823,8 @@ print_operand (file, x, code)
else
output_address
(
plus_constant
(
XEXP
(
x
,
0
),
12
));
if
(
small_data_operand
(
x
,
GET_MODE
(
x
)))
fprintf
(
file
,
"@%s(%s)"
,
SMALL_DATA_RELOC
,
reg_names
[
0
]);
fprintf
(
file
,
"@%s(%s)"
,
SMALL_DATA_RELOC
,
reg_names
[
SMALL_DATA_REG
]);
}
return
;
...
...
@@ -2861,7 +2866,8 @@ print_operand_address (file, x)
{
output_addr_const
(
file
,
x
);
if
(
small_data_operand
(
x
,
GET_MODE
(
x
)))
fprintf
(
file
,
"@%s(%s)"
,
SMALL_DATA_RELOC
,
reg_names
[
0
]);
fprintf
(
file
,
"@%s(%s)"
,
SMALL_DATA_RELOC
,
reg_names
[
SMALL_DATA_REG
]);
#ifdef TARGET_NO_TOC
else
if
(
TARGET_NO_TOC
)
...
...
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