Commit Graph

53 Commits

Author SHA1 Message Date
riastradh 513e90a6d7 Need <stdint.h> for uintmax_t.
From debidi in #netbsd on Freenode.
2016-12-18 18:32:24 +00:00
mlelstv d40f84ecec cast to intmax_t for machine-independent printing. 2016-09-22 08:43:26 +00:00
christos 6c0bd55ee3 moved to /usr/src/external/gpl3/binutils/usr.sbin/mdsetimage 2016-09-21 21:53:03 +00:00
christos 8fcc68317d fix usage. 2016-09-21 16:29:48 +00:00
christos 753ee5437d ansify. 2016-09-21 16:27:55 +00:00
christos e49db1a5f5 merge copies... 2016-09-21 16:25:41 +00:00
wiz 8f582fbe68 Sort options in SYNOPSIS. 2010-11-07 11:49:21 +00:00
uebayasi 4cca618331 Handle md(4)'s embedded root disk image and size symbol names other
than the default ones ("md_root_image" / "md_root_size").

(References to xmd(4) are deliberately removed.)
2010-11-06 16:03:23 +00:00
joerg c1e0a5bd50 Replace the current usage of Elf64_Half with Elf64_Word and rename
NetBSD specific Elf64_Quarter to Elf64_Half. This restores compatibility
with the common ELF specifications.
2010-08-28 21:30:02 +00:00
tsutsui c3ee8e5613 - use program header rather than section header to find file offset for vmaddr
- make sure that passed vmaddr is in TEXT or DATA section
2009-07-30 15:56:01 +00:00
tsutsui fcb0df9205 WARNS'fy sources which are left for reference.
src/usr.sbin/mdsetimage has been superseded by src/gnu/usr.sbin/mdsetimage
for toolchain to handle cross build binaries, but these old sources for
local executable binaries still can be used for tools to patch binaries,
like binpatch utility in sys/arch/amiga/stand and sys/arch/atari/stand.
2009-07-30 15:16:37 +00:00
lukem 9c1945664c Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 13:36:57 +00:00
perry 8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
lukem 826a14607a Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op),
there's no need to special-case .include-ing it.
2003-05-18 07:57:31 +00:00
fvdl 174b474772 Include -DNLIST_ELF64 for x86_64. 2002-12-10 17:59:41 +00:00
fvdl 3658e0287e Add x86_64 if clause to get correct types. 2002-11-25 22:33:39 +00:00
wiz 4e823ac145 Whitespace nits. 2002-01-19 03:35:05 +00:00
fredette e4e309c64c Define both NLIST_ELF32 and NLIST_AOUT on m68000. 2001-12-12 22:19:18 +00:00
jmc a831891141 Pull in mdsetimage to the tools builds. (XXX - using libbfd here would
probably be preferrable long term).
2001-10-21 23:10:46 +00:00
cgd 0fcb9b7701 Remove the advertising clause from my license notice FOR THIS PROGRAM ONLY.
The purpose of that modification is to make the license on these files
"GPL-compatible," so that mdsetimage may be combined with BFD.  (The
resulting license is word-for-word identicial to one of the licenses
described as being GPL compatible on
http://www.gnu.org/licenses/license-list.html.)
2001-10-01 23:32:34 +00:00
eeh 09af009af3 Fix typo in previous. (damn vi.) 2001-06-21 22:58:36 +00:00
eeh 5e8c69237f Add sparc64 support for both sparc and sparc64:
ELF64 for 64-bit sparc64 kernels.
ELF32 for 32-bit sparc and sparc64 kernels.
a.out for old sparc kernels.
2001-06-21 22:57:25 +00:00
matt 1ac7180770 Enable ELF32 for vax re: mdsetimage. 2001-05-01 20:35:19 +00:00
bjh21 f7bfe29cb1 Compile with ELF support on ARM systems. 2001-04-24 19:02:06 +00:00
cgd bea3342290 slight cleanup: KNF, and one line breaking tweak to make usage() slightly
more diffable w/ the BFD version in pkgsrc.
2001-03-21 23:46:48 +00:00
cgd 7760ae7215 check for size_t overflow using cast, rather than comparison with
SIZE_T_MAX.  The latter is less portable.
2001-03-21 23:27:33 +00:00
cgd 040de26f85 call setprogname(argv[0]) at start of main() 2001-02-21 00:06:22 +00:00
cgd 25bdbb661e convert to use getprogname() 2001-02-19 23:22:40 +00:00
tsutsui 3a7ec5d5cd Define both NLIST_ELF32 and NLIST_AOUT on m68k. 2001-02-18 05:58:35 +00:00
lukem c2aa46e7c2 use %ll_ instead of the less standard %q_ 2001-01-05 03:27:26 +00:00
shin 745fabb2ce MACHINE_ARCH for MIPS machine is "mipsel" or "mipseb". 2001-01-05 01:35:45 +00:00
itojun 92ee339d1c sh3 split 2001-01-04 09:43:05 +00:00
scw ab70197801 Select the object format in the Makefile, to allow selecting on
%MACHINE when deciding what object formats to support.
2000-12-18 20:43:58 +00:00
cgd db755e7c76 sweep of my licenses (userland files w/o only my copyright) for
consistency.  (no functional changes)
2000-06-14 17:24:02 +00:00
cgd d220ca5ba3 fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well.  No functional changes.
2000-06-14 06:48:47 +00:00
msaitoh 049ad0d982 machine/exec_coff.h -> sys/exec_coff.h 2000-01-07 09:40:33 +00:00
erh 6752f572d8 Remove ELFNAME defines since they are defined in sys/exec_elf.h 1999-11-04 02:00:17 +00:00
kleink 522cbf0248 Update to match new SVR4-style definition names in <sys/exec_elf.h>. 1999-10-25 13:55:06 +00:00
hannken 5fb16f4d15 Undo last change. While these macros are defined in exec_elf.h, they are
enclosed by `#ifdef _KERNEL'.
1999-10-22 10:58:00 +00:00
erh 59b90d4a0e Remove ELFNAME macros which are already defines in exec_elf.h 1999-10-21 21:17:08 +00:00
itojun ec7f04c32c support coff image file.
(this is part of NetBSD/sh3 patches)
1999-09-12 16:08:13 +00:00
garbled d1407362ba 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:43:46 +00:00
christos f81a7584c8 Add ELF for i386 and sparc (Andrew Gillham) 1999-03-03 12:26:07 +00:00
jonathan 92fda0ceb3 Define NLIST_ELF32 for mips native format. Also NLIST_ECOFF (pmax, arc PROMs)
NLIST_AOUT (old pmax bootblocks).
1998-12-05 07:30:38 +00:00
sakamoto 6cd8c4c69f Define NLIST_ELF32 on PowerPC. 1998-11-26 08:11:33 +00:00
ross 5b1f2d4c8c Add {} pairs to shut up egcs. 1998-08-27 18:03:42 +00:00
lukem 593df3da4c WARNSify 1997-10-17 10:28:39 +00:00
lukem fcfec169df WARNSify 1997-10-17 10:18:36 +00:00
scottr dbeee4956b Implement the -T flag, used to (optionally) specify the kernel text
start address for a.out executables.  This is useful in the case that
kernel text starts in the second physical page, in which case the
clever hack to work around the problem is defeated.

This option was patterned after the -T flag documented in the ld(1)
man page.  (It does not support the undocumented '-Ttext <addr>'
usage, however, since that would require a parser or getopt(3) hacks.)
1997-09-30 06:20:16 +00:00
cgd dd84b718ce Re-fix the PR 3209. The right thing to do is cast to (long long) and
print with %qd.  'off_t' is _NOT_ 'long long' on all platforms, and gcc
complains with -Wformat %qd is used on an off_t on those platforms.
1997-02-11 22:40:25 +00:00