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
77af5c46
Commit
77af5c46
authored
Mar 19, 2001
by
Philip Blundell
Committed by
Nick Clifton
Mar 19, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for unique sections in arm-linux target.
From-SVN: r40632
parent
085072bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
gcc/ChangeLog
+5
-0
gcc/config/arm/linux-elf.h
+38
-0
No files found.
gcc/ChangeLog
View file @
77af5c46
2001-03-19 Philip Blundell <philb@gnu.org>
* arm/linux-elf.h (MAKE_DECL_ONE_ONLY, UNIQUE_SECTION_P): Define.
(UNIQUE_SECTION): Define.
2001-03-19 Mark Mitchell <mark@codesourcery.com>
2001-03-19 Mark Mitchell <mark@codesourcery.com>
* cse.c (find_comparison_args): Update documentation. Fix
* cse.c (find_comparison_args): Update documentation. Fix
...
...
gcc/config/arm/linux-elf.h
View file @
77af5c46
...
@@ -235,6 +235,44 @@ const_section () \
...
@@ -235,6 +235,44 @@ const_section () \
go into the const section. */
go into the const section. */
#define SELECT_RTX_SECTION(MODE,RTX) const_section ()
#define SELECT_RTX_SECTION(MODE,RTX) const_section ()
#define MAKE_DECL_ONE_ONLY(DECL) (DECL_WEAK (DECL) = 1)
#define UNIQUE_SECTION_P(DECL) (DECL_ONE_ONLY (DECL))
#define UNIQUE_SECTION(DECL, RELOC) \
do \
{ \
int len; \
char *name; \
char *string; \
char *prefix; \
\
name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (DECL)); \
\
if (! DECL_ONE_ONLY (DECL)) \
{ \
prefix = "."; \
if (TREE_CODE (DECL) == FUNCTION_DECL) \
prefix = ".text."; \
else if (DECL_READONLY_SECTION (DECL, RELOC)) \
prefix = ".rodata."; \
else \
prefix = ".data."; \
} \
else if (TREE_CODE (DECL) == FUNCTION_DECL) \
prefix = ".gnu.linkonce.t."; \
else if (DECL_READONLY_SECTION (DECL, RELOC)) \
prefix = ".gnu.linkonce.r."; \
else \
prefix = ".gnu.linkonce.d."; \
\
len = strlen (name) + strlen (prefix); \
string = alloca (len + 1); \
sprintf (string, "%s%s", prefix, name); \
\
DECL_SECTION_NAME (DECL) = build_string (len, string); \
} \
while (0)
/* On svr4, we *do* have support for the .init and .fini sections, and we
/* On svr4, we *do* have support for the .init and .fini sections, and we
can put stuff in there to be executed before and after `main'. We let
can put stuff in there to be executed before and after `main'. We let
crtstuff.c and other files know this by defining the following symbols.
crtstuff.c and other files know this by defining the following symbols.
...
...
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