Commit Graph

42 Commits

Author SHA1 Message Date
wiz 4c02e23096 Sort options in usage. 2019-05-19 09:14:13 +00:00
christos 59e8d36e8f - add flag to produce OMAGIC
- factor out complicated inline code into simpler functions
- add options parsing
2019-05-18 21:16:12 +00:00
skrll 4402b4d24a Fix build on ppc64 2019-04-27 15:43:09 +00:00
skrll 6e604a1916 A couple of fixes so that NetBSD/cats builds (on linux), works, and
produces a symbol table that is readable (by 4.4BSD nm(1) at least)

- Change from OMAGIC to ZMAGIC
- Resize the a.out string table if we run out of space.
- output symbol table size as int32_t (the code already assumes no 64bit
  a.out.
2019-04-26 07:35:21 +00:00
martin 0de30d2afa Match all arm (and simplify powerpc conditionals) 2019-01-01 14:01:46 +00:00
christos 395228d264 Update usage comments, add arm 2018-12-31 13:32:05 +00:00
martin 212399f8da Gcc, please shut up with those stupid warnings! 2016-03-07 22:16:38 +00:00
martin cb0ca8dd7b Try to fix build on 32bit architectures. 2016-03-07 08:59:00 +00:00
christos fd89278a5f PR/50897: David Binderman: fix memory leaks. While here, modernize error
handling, and types.
2016-03-06 16:13:21 +00:00
martin bf186f94c5 David Binderman in PR bin/50897: fix memory leak. 2016-03-06 15:44:06 +00:00
riastradh 6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
matt 105794b79c Use ${MACHINE_CPU} == "m68k" 2013-07-18 21:11:47 +00:00
njoly 4d5ade5119 Remove dead xrefs to obsolete kvm_mkdb(8). 2012-03-05 10:57:18 +00:00
tsutsui b578f76170 Make this cross-tool ready. Mostly taken from elf2ecoff(1).
XXX: assume no LP64 a.out binaries
2011-07-10 05:07:48 +00:00
tsutsui da8589ed6d Set a_midmag MAGIC in a.out header properly for more possible a.out ports
in the past per ex.e_machine in ELF header.
2011-07-10 04:56:31 +00:00
tsutsui 41319be297 ANSIfy, de-__P(), KNF, misc cosmetics. 2011-06-28 13:15:24 +00:00
mrg 65fad457b3 build elf2aout and fdformat on macppc64 (for now, it's a lot easier than
figuring out how to split the sets... but that will have to happen.)

fixes the first easy part of PR#43075.
2010-03-30 07:26:23 +00:00
matt 5f89c92891 Don't build for MIPS anymore 2009-08-12 23:39:13 +00:00
dogcow 7aaa51f5d6 Fix sign/unsigned and discards qualifiers. Based on patch by mlelstv. 2009-04-18 10:12:42 +00:00
simonb ba5d7d507c s/the the/to the/. 2004-04-23 02:55:11 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
grant be8ae688ae New sentence, new line. 2002-09-30 11:08:56 +00:00
fredette 4c30682327 Build elf2aout on m68000. 2002-03-22 00:17:56 +00:00
wiz 526f893a25 Sort sections, sort SEE ALSO, drop some .Pps. 2001-12-01 19:05:04 +00:00
msaitoh f6f00e2615 remove extra period in SEE ALL section 2000-07-05 15:45:28 +00:00
is ef7b92db6a Build on m68k and powerpc: needed for amigappc kernel with old boot loader. 2000-05-21 06:48:08 +00:00
soren 89c5a767f8 Fix doubled 'the's. 2000-03-13 22:55:05 +00:00
is 05af6871fb new symbol names for former Elf_xxx 2000-01-11 20:33:21 +00:00
is ee9bf4dc7c Make this also work for PowerPC targets. 2000-01-09 11:26:01 +00:00
drochner 1899563c96 make it compile after ELF definition changes 1999-11-02 21:13:17 +00:00
simonb 01291c0840 Only build binaries on mipse? systems, but build man pages on everything. 1999-06-09 02:54:17 +00:00
garbled 9e44e9b578 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:16:34 +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 34a98169f0 macroize BSD, NetBSD, FreeBSD and misc cleanup 1998-02-06 05:54:12 +00:00
perry 3fe138c146 RCS Id Police. 1998-01-09 08:03:16 +00:00
lukem ae88474da7 WARNSify, fix .Nm usage 1997-10-18 13:48:35 +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 0506626d5f Fix Makefile boilerplate:
Use elfstrip to strip itself only in elfstrip, not elf2aout or elf2ecoff.
1996-09-29 22:23:01 +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 fb8fff0110 Commit minimal Makefiles and man pages for ELf toolchain utilties
elf2aout, elf2ecoff, elfstrip
1996-09-29 21:53:11 +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