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
9f21696b
Commit
9f21696b
authored
Feb 13, 1995
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix collecting under AIX
From-SVN: r8933
parent
d1e1adfb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
7 deletions
+24
-7
gcc/collect2.c
+20
-7
gcc/config/rs6000/rs6000.h
+4
-0
No files found.
gcc/collect2.c
View file @
9f21696b
...
...
@@ -824,6 +824,8 @@ main (argc, argv)
char
**
ld1
=
ld1_argv
;
char
**
ld2_argv
=
(
char
**
)
xcalloc
(
sizeof
(
char
*
),
argc
+
5
);
char
**
ld2
=
ld2_argv
;
char
**
object_lst
=
(
char
**
)
xcalloc
(
sizeof
(
char
*
),
argc
);
char
**
object
=
object_lst
;
int
first_file
;
int
num_c_args
=
argc
+
7
;
...
...
@@ -1154,15 +1156,19 @@ main (argc, argv)
break
;
}
}
else
if
(
first_file
&&
(
p
=
rindex
(
arg
,
'.'
))
!=
(
char
*
)
0
else
if
((
p
=
rindex
(
arg
,
'.'
))
!=
(
char
*
)
0
&&
(
strcmp
(
p
,
".o"
)
==
0
||
strcmp
(
p
,
".a"
)
==
0
))
{
first_file
=
0
;
/* place o_file BEFORE this argument! */
ld2
--
;
*
ld2
++
=
o_file
;
*
ld2
++
=
arg
;
if
(
first_file
)
{
first_file
=
0
;
/* place o_file BEFORE this argument! */
ld2
--
;
*
ld2
++
=
o_file
;
*
ld2
++
=
arg
;
}
if
(
p
[
1
]
==
'o'
)
*
object
++
=
arg
;
}
}
...
...
@@ -1261,6 +1267,13 @@ main (argc, argv)
if
(
rflag
)
return
0
;
#ifdef COLLECT_SCAN_OBJECTS
/* The AIX linker will discard static constructors in object files if
nothing else in the file is referenced, so look at them first. */
while
(
object_lst
<
object
)
scan_prog_file
(
*
object_lst
++
,
PASS_FIRST
);
#endif
scan_prog_file
(
output_file
,
PASS_FIRST
);
#ifdef SCAN_LIBRARIES
...
...
gcc/config/rs6000/rs6000.h
View file @
9f21696b
...
...
@@ -98,6 +98,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Don't turn -B into -L if the argument specifies a relative file name. */
#define RELATIVE_PREFIX_NOT_LINKDIR
/* The AIX linker will discard static constructors in object files before
collect has a chance to see them, so scan the object files directly. */
#define COLLECT_SCAN_OBJECTS
/* Architecture type. */
extern
int
target_flags
;
...
...
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