History log of /freebsd-current/usr.sbin/btxld/btxld.c
Revision Date Author Comments
# eba230af 25-Sep-2023 John Baldwin <jhb@FreeBSD.org>

Purge more stray embedded $FreeBSD$ strings

These do not use __FBSDID but instead use bare char arrays.

Reviewed by: imp, emaste
Differential Revision: https://reviews.freebsd.org/D41957


# 72e1ea2f 07-Jul-2023 Alfonso Gregory <gfunni234@gmail.com>

Mark usage function as __dead2 in programs where it does not return

In most cases, usage does not return, so mark them as __dead2. For the
cases where they do return, they have not been marked __dead2.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/735


# 4d846d26 10-May-2023 Warner Losh <imp@FreeBSD.org>

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix


# 1987e300 27-Dec-2017 Warner Losh <imp@FreeBSD.org>

Explicitly ignore return value from remove. We wouldn't do anything
differently if we can't unlink the temporary file. Also, free the
temporary file name when we set it to NULL.

CID: 1006909, 719448


# 1de7b4b8 27-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

various: general adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

No functional change intended.


# c4c510be 18-Apr-2016 Pedro F. Giffuni <pfg@FreeBSD.org>

Reuse our roundup2() macro instead of reinventing the wheel.

Obtained from: DragonflyBSD


# 419749b6 25-Feb-2014 Christian Brueffer <brueffer@FreeBSD.org>

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
MFC after: 1 month


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# 9f850411 09-Sep-2009 Warner Losh <imp@FreeBSD.org>

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 :)


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 8948542c 05-Apr-2008 Doug Rabson <dfr@FreeBSD.org>

Allow for a zero length 'loader'.


# 50385af9 23-Jan-2006 Xin LI <delphij@FreeBSD.org>

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


# 093f1218 19-Feb-2005 Ruslan Ermilov <ru@FreeBSD.org>

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)


# 49a39408 22-Jun-2004 David E. O'Brien <obrien@FreeBSD.org>

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


# 7148ee89 11-Mar-2003 Ruslan Ermilov <ru@FreeBSD.org>

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


# 3bf31777 04-Feb-2003 Ruslan Ermilov <ru@FreeBSD.org>

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.


# ac53b225 24-Sep-2002 Mike Barcroft <mike@FreeBSD.org>

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


# b0ca5f03 04-Jan-2000 Marcel Moolenaar <marcel@FreeBSD.org>

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).


# 97d92980 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 38c931ab 13-Sep-1998 Robert Nordier <rnordier@FreeBSD.org>

Enable client entry point support.


# 9c9f4492 12-Sep-1998 Robert Nordier <rnordier@FreeBSD.org>

btxld is a link editor for BTX (boot extender) clients, supporting ELF,
a.out, and binary formats.