History log of /freebsd-10-stable/usr.sbin/btxld/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
263835 27-Mar-2014 brueffer

MFC: r262484

In puthdr(), start the ELF .data section on a new page, as this is
what btxldr expects (.set MEM_DATA,start+0x1000 in btxldr.S).

This makes resulting ELF binaries bootable with grub, gptboot and boot2.

PR: 153801
Submitted by: Gleb Kurtsou <gleb.kurtsou at gmail.com>
Tested by: Ruben Kerkhof <ruben at rubenkerkhof.com>
Glanced at by: jhb, peter

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


201390 02-Jan-2010 ed

The last big commit: let usr.sbin/ use WARNS=6 by default.


197051 10-Sep-2009 imp

The boot loader is a FreeBSD a.out binary for x86, not a VAX binary.
Rather than writing out a MID of '0', write a MID of 0x86 (aka
MID_I386) so that file gets it right.

This is a nop for boot2. It just checks the MAGIC part of the field,
ignoring the MID. boot2 is the only thing that loads this file, and
only on x86 so the MID_i386 is always the right value (the rest of the
code is already x86 specific).

Reviewed by: bde@, jhb@
MFC after: 8.0 is out the door :)


177933 05-Apr-2008 dfr

Allow for a zero length 'loader'.


154711 23-Jan-2006 delphij

An old patch from Dan Lukes <dan at obluda.cz>:

+ Include netinet/in.h for ntohl()
* Since the return value was tested separately, cast the values to
size_t in order to shut up compiler warnings.
+ Raise WARNS= level to 6

PR: bin/71666


142108 19-Feb-2005 ru

Fix the same problem that was fixed in rev. 1.6 and got reintroduced
in rev. 1.8 -- make btxld(8) a cross-tool for i386 and now amd64.

Tested on: alpha (which has a different idea of __LDPGSZ)


140442 18-Jan-2005 ru

Sort sections.


140368 17-Jan-2005 ru

Added the EXIT STATUS section where appropriate.


131500 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


130927 22-Jun-2004 obrien

Adjust the system endian and a.out headers to be more MI and cross-building
friendly. Use the systems headers rather than local versions.

Reviewed by: ru


112092 11-Mar-2003 ru

Make this work on different endianness machines.

Tested on: sparc64

: FreeBSD/i386 bootstrap loader, Revision 1.1
: (ru@panther.freebsd.org, Tue Mar 11 05:31:14 PST 2003)
: Loading /boot/defaults/loader.conf


110345 04-Feb-2003 ru

Added MI version of <sys/imgact_aout.h>, "a.out.h", which is
always compatible with the i386 version.

This fixes one of the problems I had cross-releasing i386 on
Alpha: the produced "-f aout" binaries are now identical.


103917 24-Sep-2002 mike

Get howmany() macro from <sys/param.h>, instead of depending on its
existence in <sys/types.h>.


81687 15-Aug-2001 ru

mdoc(7) police: utilize the new .Ex macro.


80084 21-Jul-2001 rnordier

Unset MAINTAINER.


80029 20-Jul-2001 obrien

Perform a major cleanup of the usr.sbin Makefiles.
These are not perfectly in agreement with each other style-wise, but they
are orders of orders of magnitude more consistent style-wise than before.


80022 20-Jul-2001 obrien

Remove GCC'isms in CFLAGS.


74816 26-Mar-2001 ru

- Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.


74532 20-Mar-2001 ru

Set the default manual section for usr.sbin/ to 8.


68965 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


66555 02-Oct-2000 rnordier

Set MAINTAINER.


55416 04-Jan-2000 marcel

o Allow btxld to be compiled on 64-bit machines
o s/unsigned/unsigned int/g
o Add -Wall

btxld can now be built as a cross-tool for cross-building i386/pc98 on
platforms that don't have btxld (such as alpha).


50479 28-Aug-1999 peter

$Id$ -> $FreeBSD$


39125 13-Sep-1998 rnordier

Enable client entry point support.


39093 12-Sep-1998 rnordier

This commit was generated by cvs2svn to compensate for changes in r39092,
which included commits to RCS files with non-trunk default branches.