(scan_libraries): cast lsyms' alloca() to LDSYM*.
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 12 Sep 1995 17:09:33 +0000 (13:09 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 12 Sep 1995 17:09:33 +0000 (13:09 -0400)
From-SVN: r10324

gcc/collect2.c

index 4e930fce055b8a45e355dc1d45a9a7cdbc873641..a74a7f069924390e581f8db1c89aa2208f28b19d 100644 (file)
@@ -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);