* Fix Compile Time Warnings: ld/emultempl
@ 2005-02-24 0:19 Nick Clifton
0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2005-02-24 0:19 UTC (permalink / raw)
To: binutils
Hi Guys,
Here are a couple of small patches to files in the ld/emultempl
directory. The first fixes the lnk960,em file which was calling
concat() without terminating the list of arguments with a NULL. The
second fixes m68coff.em so that there are no undefined types
encountered in the prototypes defined in ldfile.h.
Cheers
Nick
ld/ChangeLog
2005-02-23 Nick Clifton <nickc@redhat.com>
* emultempl/lnk960.em (lnk960_before_parse): Terminate list of
arguments passed to concat() with a NULL.
* emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
define types needed by ldfile.h
Index: ld/emultempl/lnk960.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/lnk960.em,v
retrieving revision 1.13
diff -c -3 -p -r1.13 lnk960.em
*** ld/emultempl/lnk960.em 27 Jun 2003 00:38:25 -0000 1.13
--- ld/emultempl/lnk960.em 23 Feb 2005 16:44:09 -0000
***************
*************** lnk960_before_parse (void)
*** 94,105 ****
{
env = (char *) getenv (*p);
if (env)
! ldfile_add_library_path (concat (env, "/lib/libcoff", ""), FALSE);
}
env = (char *) getenv ("I960BASE");
if (env)
! ldfile_add_library_path(concat (env, "/lib", ""), FALSE);
ldfile_output_architecture = bfd_arch_i960;
ldfile_output_machine = bfd_mach_i960_core;
--- 94,105 ----
{
env = (char *) getenv (*p);
if (env)
! ldfile_add_library_path (concat (env, "/lib/libcoff", "", NULL), FALSE);
}
env = (char *) getenv ("I960BASE");
if (env)
! ldfile_add_library_path (concat (env, "/lib", "", NULL), FALSE);
ldfile_output_architecture = bfd_arch_i960;
ldfile_output_machine = bfd_mach_i960_core;
*************** lnk960_before_parse (void)
*** 119,126 ****
einfo ("%P%F I960BASE and G960BASE not set\n");
}
!
! ldfile_add_library_path (concat (name, "/lib", ""), FALSE);
ldfile_output_architecture = bfd_arch_i960;
ldfile_output_machine = bfd_mach_i960_core;
}
--- 119,125 ----
einfo ("%P%F I960BASE and G960BASE not set\n");
}
! ldfile_add_library_path (concat (name, "/lib", "", NULL), FALSE);
ldfile_output_architecture = bfd_arch_i960;
ldfile_output_machine = bfd_mach_i960_core;
}
Index: ld/emultempl/m68kcoff.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/m68kcoff.em,v
retrieving revision 1.10
diff -c -3 -p -r1.10 m68kcoff.em
*** ld/emultempl/m68kcoff.em 3 Jan 2004 11:09:07 -0000 1.10
--- ld/emultempl/m68kcoff.em 23 Feb 2005 16:44:09 -0000
*************** Foundation, Inc., 59 Temple Place - Suit
*** 33,38 ****
--- 33,40 ----
#include "ld.h"
#include "ldmain.h"
+ #include "ldexp.h"
+ #include "ldlang.h"
#include "ldfile.h"
#include "ldemul.h"
#include "ldmisc.h"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-02-23 16:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-24 0:19 Fix Compile Time Warnings: ld/emultempl Nick Clifton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).