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
4f3397ae
Commit
4f3397ae
authored
Nov 03, 1996
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Random -fpic fixes
From-SVN: r13092
parent
810429b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
gcc/config/rs6000/sysv4.h
+5
-5
No files found.
gcc/config/rs6000/sysv4.h
View file @
4f3397ae
...
@@ -430,12 +430,12 @@ do { \
...
@@ -430,12 +430,12 @@ do { \
/* Put PC relative got entries in .got2 */
/* Put PC relative got entries in .got2 */
#define MINIMAL_TOC_SECTION_ASM_OP \
#define MINIMAL_TOC_SECTION_ASM_OP \
((TARGET_RELOCATABLE) ? "\t.section\t\".got2\",\"aw\"" : "\t.section\t\".got1\",\"aw\"")
((TARGET_RELOCATABLE
|| flag_pic
) ? "\t.section\t\".got2\",\"aw\"" : "\t.section\t\".got1\",\"aw\"")
/* Put relocatable data in .data, not .rodata so initialized pointers can be updated */
/* Put relocatable data in .data, not .rodata so initialized pointers can be updated */
#undef CONST_SECTION_ASM_OP
#undef CONST_SECTION_ASM_OP
#define CONST_SECTION_ASM_OP \
#define CONST_SECTION_ASM_OP \
((TARGET_RELOCATABLE) ? "\t.section\t\".data\"\t# .rodata" : "\t.section\t\".rodata\"")
((TARGET_RELOCATABLE
|| flag_pic
) ? "\t.section\t\".data\"\t# .rodata" : "\t.section\t\".rodata\"")
#define SDATA_SECTION_ASM_OP "\t.section \".sdata\",\"aw\""
#define SDATA_SECTION_ASM_OP "\t.section \".sdata\",\"aw\""
...
@@ -703,7 +703,7 @@ extern int rs6000_pic_labelno;
...
@@ -703,7 +703,7 @@ extern int rs6000_pic_labelno;
do { \
do { \
if (TARGET_SDATA && (SIZE) > 0 && (SIZE) <= g_switch_value) \
if (TARGET_SDATA && (SIZE) > 0 && (SIZE) <= g_switch_value) \
{ \
{ \
s
bss
_section (); \
s
data
_section (); \
ASM_OUTPUT_ALIGN (FILE, exact_log2 (ALIGN / BITS_PER_UNIT)); \
ASM_OUTPUT_ALIGN (FILE, exact_log2 (ALIGN / BITS_PER_UNIT)); \
ASM_OUTPUT_LABEL (FILE, NAME); \
ASM_OUTPUT_LABEL (FILE, NAME); \
ASM_OUTPUT_SKIP (FILE, SIZE); \
ASM_OUTPUT_SKIP (FILE, SIZE); \
...
@@ -755,7 +755,7 @@ do { \
...
@@ -755,7 +755,7 @@ do { \
#define ASM_OUTPUT_INT(FILE,VALUE) \
#define ASM_OUTPUT_INT(FILE,VALUE) \
do { \
do { \
static int recurse = 0; \
static int recurse = 0; \
if (
TARGET_RELOCATABLE
\
if (
(TARGET_RELOCATABLE || flag_pic)
\
&& in_section != in_toc \
&& in_section != in_toc \
&& in_section != in_text \
&& in_section != in_text \
&& in_section != in_ctors \
&& in_section != in_ctors \
...
@@ -883,7 +883,7 @@ do { \
...
@@ -883,7 +883,7 @@ do { \
\
\
if (DECL && TREE_CODE (DECL) == FUNCTION_DECL) \
if (DECL && TREE_CODE (DECL) == FUNCTION_DECL) \
type = SECT_EXEC, mode = "ax"; \
type = SECT_EXEC, mode = "ax"; \
else if (DECL && TREE_READONLY (DECL) && !TARGET_RELOCATABLE
)
\
else if (DECL && TREE_READONLY (DECL) && !TARGET_RELOCATABLE
&& !flag_pic)
\
type = SECT_RO, mode = "a"; \
type = SECT_RO, mode = "a"; \
else \
else \
type = SECT_RW, mode = "aw"; \
type = SECT_RW, mode = "aw"; \
...
...
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