Commit Graph

33 Commits

Author SHA1 Message Date
christos
425b4f3910 fix printf format 2017-02-24 17:19:14 +00:00
christos
bb0b3deb55 fix printf format. 2017-02-24 13:03:25 +00:00
christos
c9ed210715 This only works with 32 bit Elf and COFF files, make it specific this way
and use sized types so that it works on 64 bit systems (so it can become
a tool).
2017-02-23 18:49:00 +00:00
christos
1d13ed3d99 ignore the abiflags section 2016-09-03 11:35:24 +00:00
christos
fe3f867991 remove unused variables 2013-11-10 17:14:25 +00:00
christos
76987894af misc knf cleanup. 2011-08-23 20:27:22 +00:00
tsutsui
63fc11e983 ANSIfy, KNF, misc cosmetics. 2011-06-28 13:13:15 +00:00
tsutsui
ba6eca2794 Use %zu for size_t, not %zd. 2009-12-19 10:27:13 +00:00
uebayasi
338fe7370e Adjust size_t format specifiers for mips64e[bl]. 2009-12-14 14:11:32 +00:00
matt
82d396ea31 Merge from matt-nb5-mips64 2009-12-14 00:43:05 +00:00
tsutsui
c37f283f47 Fix -Wcast-qual and -Wsign-compare issues. 2009-04-23 14:49:32 +00:00
simonb
f11583fa19 Fix "pointer targets in passing argument X of 'Y' differ in signedness"
warnings.  Originally, bswap32_region() took a u_int32_t * as its first
argument.  Since no args passed to it are u_int32_t *, but some are
int32_t *, change it to int32_t * and fix remaining casts.
2006-05-31 08:09:55 +00:00
lukem
171d653219 Overhaul how `build.sh tools' are used:
*	Rename "config.h" to "nbtool_config.h" and
	HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
	This makes in more obvious in the source when we're using
	tools/compat/config.h versus "standard autoconf" config.h

    *	Consistently move the inclusion of nbtool_config.h to before
    	<sys/cdefs.h> so that the former can provide __RCSID() (et al),
    	and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
	#if HAVE_NBTOOL_CONFIG_H
	#include "nbtool_config.h"
	#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00
tv
659104213a Proper usage of HAVE_CONFIG_H. 2002-04-25 18:16:49 +00:00
bouyer
a9be20933e Include config.h when compiled as host tool. 2002-03-24 19:19:29 +00:00
bouyer
7cf2fe5876 Don't need <sys/exec.h> either. 2002-03-23 17:44:52 +00:00
bouyer
4498b37c8b We don't need <sys/exec_aout.h> here. 2002-03-23 17:18:42 +00:00
bouyer
33176a1255 Add byte-swapping calls where appropriate, so that this can be used as
cross-tool on opposite endian host.
2002-03-23 17:11:45 +00:00
bouyer
9f3b0a4dcc Respect byte order of the ELF executable. This allows elf2ecoff to be used
for mipseb platforms (especially to produce bootable ecoff kernel for sgimips).
2002-03-19 09:29:04 +00:00
soren
89c5a767f8 Fix doubled 'the's. 2000-03-13 22:55:05 +00:00
drochner
1899563c96 make it compile after ELF definition changes 1999-11-02 21:13:17 +00:00
kleink
3ed4fcf61e In userland, pull in <errno.h> instead of <sys/errno.h> for the declaration
of errno.
1999-01-11 22:39:59 +00:00
simonb
552d6a2ac5 Truncate the output file before writing to it, and silence the verbose
output.
1998-11-27 05:09:49 +00:00
perry
bfd526219d bzero->memset, bcopy->memcpy, bcmp->memcmp 1998-08-10 02:57:23 +00:00
lukem
043bfc9260 KNFify (with indent(1)) 1997-10-18 13:53:19 +00:00
jonathan
623d454fe0 * Rewrite symbol-remapping code, compatible with mips ECOFF toolchain.
* delint for -Wall -Wstrict-prototypes -Wmissing-prototypes.
1997-07-20 03:50:54 +00:00
jonathan
34b0d2463d Re-commit (from non-stale NFS filehandle) with debugging really turned off. 1997-07-07 00:02:16 +00:00
jonathan
25afea2de8 * Delint for gcc -Wall -Wmissing-prototypes -Wstrict-prototypes.
* Add an extra 4096 bytes of padding to the end of ECOFF files for
  the benefit of dumb TFTP clietns that read entire pages.
1997-07-06 23:57:39 +00:00
thorpej
1fb754977a Need <sys/exec.h> to get stuff that <machine/ecoff_machdep.h> needs. 1997-06-16 22:10:27 +00:00
tls
9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
jonathan
58e8bd3b69 Rework to compile with <sys/exec_elf.h>. 1996-10-16 00:27:05 +00:00
jonathan
559daf5070 Add RCS id lines to Ted Lemon's original code.
Update elf2ecoff to compile against NetBSD-1.2 distribtion ECOFF headers.
1996-09-29 22:01:44 +00:00
jonathan
55e1f3d7f3 Import Ted Lemon's ELF toolchain utilties used to build kernels
for the pmax port in  NetBSD 1.1 and 1.2.
1996-09-29 21:48:29 +00:00