aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1995-08-31 11:10:32 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1995-08-31 11:10:32 +0000
commit4828cdbaca53a42a3172e473b33b509b11edee8c (patch)
treec52185a313d90af006c265292fd2737560d7bc2a /binutils
parent1fc210a78b209c854e0f517fe6ab584ee9d4c43a (diff)
downloadgdb-4828cdbaca53a42a3172e473b33b509b11edee8c.zip
gdb-4828cdbaca53a42a3172e473b33b509b11edee8c.tar.gz
gdb-4828cdbaca53a42a3172e473b33b509b11edee8c.tar.bz2
* dlltool.c (run): Add missing 3rd arg to waitpid.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog4
-rw-r--r--binutils/dlltool.c20
2 files changed, 13 insertions, 11 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 7f009c6..a88bacd 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,7 @@
+Thu Aug 31 04:09:16 1995 Doug Evans <dje@canuck.cygnus.com>
+
+ * dlltool.c (run): Add missing 3rd arg to waitpid.
+
Wed Aug 30 11:02:11 1995 steve chamberlain <sac@slash.cygnus.com>
* Makefile.in (TOOL_PROGS): Include dlltool if needed.
diff --git a/binutils/dlltool.c b/binutils/dlltool.c
index 9ea319d..7b2e36d 100644
--- a/binutils/dlltool.c
+++ b/binutils/dlltool.c
@@ -532,7 +532,7 @@ run (what, args)
else
{
int status;
- waitpid (pid, &status);
+ waitpid (pid, &status, 0);
if (status)
{
if (WIFSIGNALED (status))
@@ -708,10 +708,9 @@ flush_page (f, need, page_addr, on_page)
{
int i;
/* Flush this page */
- fprintf (f, "\t%s0x%08x%s\t%s Starting RVA for chunk\n",
- ASM_RVA_BEFORE,
+ fprintf (f, "\t%s\t0x%08x\t%s Starting RVA for chunk\n",
+ ASM_LONG,
page_addr,
- ASM_RVA_AFTER,
ASM_C);
fprintf (f, "\t%s\t0x%x\t%s Size of block\n",
ASM_LONG,
@@ -1363,12 +1362,12 @@ workout_prefix ()
ranlib_name = xmalloc (len + strlen ("ranlib")+1);
as_name = xmalloc (len + strlen ("as")+1);
- strncpy (ar_name, program_name, len);
- strcat (ar_name, "ar");
- strncpy (ranlib_name, program_name, len);
- strcat (ranlib_name, "ranlib");
- strncpy (as_name, program_name, len);
- strcat (as_name, "as");
+ memcpy (ar_name, program_name, len);
+ strcpy (ar_name + len, "ar");
+ memcpy (ranlib_name, program_name, len);
+ strcpy (ranlib_name + len, "ranlib");
+ memcpy (as_name, program_name, len);
+ strcpy (as_name + len, "as");
}
}
}
@@ -1526,4 +1525,3 @@ main (ac, av)
return 0;
}
-