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
629af8db
Commit
629af8db
authored
Jun 05, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r1168
parent
3014fb49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
gcc/collect2.c
+6
-6
No files found.
gcc/collect2.c
View file @
629af8db
...
@@ -528,7 +528,7 @@ main (argc, argv)
...
@@ -528,7 +528,7 @@ main (argc, argv)
strip_file_name
=
xcalloc
(
len
+
sizeof
(
"gstrip"
),
1
);
strip_file_name
=
xcalloc
(
len
+
sizeof
(
"gstrip"
),
1
);
/* Determine the full path name of the ld program to use. */
/* Determine the full path name of the ld program to use. */
memcpy
(
ld_file_name
,
prefix
,
len
);
bcopy
(
prefix
,
ld_file_name
,
len
);
strcpy
(
ld_file_name
+
len
,
"real-ld"
);
strcpy
(
ld_file_name
+
len
,
"real-ld"
);
if
(
access
(
ld_file_name
,
X_OK
)
<
0
)
if
(
access
(
ld_file_name
,
X_OK
)
<
0
)
{
{
...
@@ -550,7 +550,7 @@ main (argc, argv)
...
@@ -550,7 +550,7 @@ main (argc, argv)
if
(
c_file_name
==
0
||
c_file_name
[
0
]
!=
'/'
)
if
(
c_file_name
==
0
||
c_file_name
[
0
]
!=
'/'
)
{
{
c_file_name
=
xcalloc
(
clen
+
sizeof
(
"gcc"
),
1
);
c_file_name
=
xcalloc
(
clen
+
sizeof
(
"gcc"
),
1
);
memcpy
(
c_file_name
,
prefix
,
len
);
bcopy
(
prefix
,
c_file_name
,
len
);
strcpy
(
c_file_name
+
len
,
"gcc"
);
strcpy
(
c_file_name
+
len
,
"gcc"
);
if
(
access
(
c_file_name
,
X_OK
)
<
0
)
if
(
access
(
c_file_name
,
X_OK
)
<
0
)
{
{
...
@@ -573,7 +573,7 @@ main (argc, argv)
...
@@ -573,7 +573,7 @@ main (argc, argv)
}
}
/* Determine the full path name of the nm to use. */
/* Determine the full path name of the nm to use. */
memcpy
(
nm_file_name
,
prefix
,
len
);
bcopy
(
prefix
,
nm_file_name
,
len
);
strcpy
(
nm_file_name
+
len
,
"nm"
);
strcpy
(
nm_file_name
+
len
,
"nm"
);
if
(
access
(
nm_file_name
,
X_OK
)
<
0
)
if
(
access
(
nm_file_name
,
X_OK
)
<
0
)
{
{
...
@@ -591,7 +591,7 @@ main (argc, argv)
...
@@ -591,7 +591,7 @@ main (argc, argv)
}
}
/* Determine the full pathname of the strip to use. */
/* Determine the full pathname of the strip to use. */
memcpy
(
strip_file_name
,
prefix
,
len
);
bcopy
(
prefix
,
strip_file_name
,
len
);
strcpy
(
strip_file_name
+
len
,
"strip"
);
strcpy
(
strip_file_name
+
len
,
"strip"
);
if
(
access
(
strip_file_name
,
X_OK
)
<
0
)
if
(
access
(
strip_file_name
,
X_OK
)
<
0
)
{
{
...
@@ -1384,7 +1384,7 @@ scan_prog_file (prog_name, which_pass)
...
@@ -1384,7 +1384,7 @@ scan_prog_file (prog_name, which_pass)
if
(
rw
)
if
(
rw
)
{
{
load_union_t
*
ptr
=
(
load_union_t
*
)
xmalloc
(
load_hdr
->
hdr
.
ldci_cmd_size
);
load_union_t
*
ptr
=
(
load_union_t
*
)
xmalloc
(
load_hdr
->
hdr
.
ldci_cmd_size
);
memcpy
(
ptr
,
load_hd
r
,
load_hdr
->
hdr
.
ldci_cmd_size
);
bcopy
(
load_hdr
,
pt
r
,
load_hdr
->
hdr
.
ldci_cmd_size
);
load_hdr
=
ptr
;
load_hdr
=
ptr
;
/* null out old command map, because we will rewrite at the end. */
/* null out old command map, because we will rewrite at the end. */
...
@@ -1567,7 +1567,7 @@ scan_prog_file (prog_name, which_pass)
...
@@ -1567,7 +1567,7 @@ scan_prog_file (prog_name, which_pass)
if
(
debug
)
if
(
debug
)
print_load_command
(
load_hdr
,
offset
,
i
);
print_load_command
(
load_hdr
,
offset
,
i
);
memcpy
(
obj
+
offset
,
load_hdr
,
size
);
bcopy
(
load_hdr
,
obj
+
offset
,
size
);
offset
+=
size
;
offset
+=
size
;
}
}
}
}
...
...
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