projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba5c3ac
)
(scan_libraries): cast lsyms' alloca() to LDSYM*.
author
Richard Kenner
<kenner@gcc.gnu.org>
Tue, 12 Sep 1995 17:09:33 +0000
(13:09 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Tue, 12 Sep 1995 17:09:33 +0000
(13:09 -0400)
From-SVN: r10324
gcc/collect2.c
patch
|
blob
|
history
diff --git
a/gcc/collect2.c
b/gcc/collect2.c
index 4e930fce055b8a45e355dc1d45a9a7cdbc873641..a74a7f069924390e581f8db1c89aa2208f28b19d 100644
(file)
--- a/
gcc/collect2.c
+++ b/
gcc/collect2.c
@@
-2692,7
+2692,7
@@
scan_libraries (prog_name)
fatal ("%s: can't read loader section", soname);
/*fprintf (stderr, "\tscanning %s\n", soname);*/
symcnt = soldh.l_nsyms;
- lsyms = alloca (symcnt * sizeof *lsyms);
+ lsyms =
(LDSYM*)
alloca (symcnt * sizeof *lsyms);
symcnt = FREAD (lsyms, sizeof *lsyms, symcnt, libptr);
ldstrings = alloca (soldh.l_stlen);
FSEEK (libptr, soldsh.s_scnptr+soldh.l_stoff, BEGINNING);