Home | History | Annotate | only in /src/sys/arch/amiga/stand/bootblock/elf2bb
History log of /src/sys/arch/amiga/stand/bootblock/elf2bb
RevisionDateAuthorComments
 1.5 08-Jun-2024  mlelstv Enable and use debug printfs to get some output into the build log.
 1.4 17-Sep-2016  christos NOPIE
 1.3 11-Dec-2005  christos branches: 1.3.122; 1.3.142; 1.3.146;
merge ktrace-lwp.
 1.2 28-Nov-2004  jmc Convert remaining host tools for amiga to correct cross tools. Now allows
complete amiga builds on non netbsd/bsd hosts
 1.1 19-Dec-2001  mhitch branches: 1.1.2; 1.1.18; 1.1.22;
The ELF counterpart to aout2bb: convert a relocatable ELF object file
to the simple relocatable image used for the amiga bootblock loader.
 1.1.22.1 06-Apr-2005  he Pull up revision 1.2 (requested by jmc in ticket #1026):
Convert remaining host tools for amiga to correct cross tools.
Now allows complete amiga builds on non-NetBSD and non-BSD hosts.
 1.1.18.1 29-Nov-2004  skrll Sync with HEAD.
 1.1.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.2.1 19-Dec-2001  thorpej file Makefile was added on branch kqueue on 2002-01-10 19:37:26 +0000
 1.3.146.1 04-Nov-2016  pgoyette Sync with HEAD
 1.3.142.1 05-Oct-2016  skrll Sync with HEAD
 1.3.122.1 03-Dec-2017  jdolecek update from HEAD
 1.9 25-Apr-2022  rin One more style... No binary changes.
 1.8 25-Apr-2022  rin Wrap looong lines, and misc style/cosmetic fixes.

No binary changes.
 1.7 25-Apr-2022  rin Use htobe{16,32}(9) instead of be{16,32}toh(9) where appropriate.

No binary changes both for little and big endian machines.
 1.6 25-Apr-2022  rin u_intN_t --> uintN_t

No binary changes.
 1.5 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.4 28-Apr-2008  martin branches: 1.4.8; 1.4.14;
Remove clause 3 and 4 from TNF licenses
 1.3 11-Dec-2005  christos branches: 1.3.74; 1.3.76; 1.3.78;
merge ktrace-lwp.
 1.2 28-Nov-2004  jmc Convert remaining host tools for amiga to correct cross tools. Now allows
complete amiga builds on non netbsd/bsd hosts
 1.1 19-Dec-2001  mhitch branches: 1.1.2; 1.1.18; 1.1.22;
The ELF counterpart to aout2bb: convert a relocatable ELF object file
to the simple relocatable image used for the amiga bootblock loader.
 1.1.22.1 06-Apr-2005  he Pull up revision 1.2 (requested by jmc in ticket #1026):
Convert remaining host tools for amiga to correct cross tools.
Now allows complete amiga builds on non-NetBSD and non-BSD hosts.
 1.1.18.1 29-Nov-2004  skrll Sync with HEAD.
 1.1.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.2.1 19-Dec-2001  thorpej file chksum.c was added on branch kqueue on 2002-01-10 19:37:26 +0000
 1.3.78.2 04-May-2009  yamt sync with head.
 1.3.78.1 16-May-2008  yamt sync with head.
 1.3.76.1 18-May-2008  yamt sync with head.
 1.3.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.4.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.4 25-Apr-2022  rin u_intN_t --> uintN_t

No binary changes.
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 26-Jan-2002  aymeric branches: 1.2.118; 1.2.120; 1.2.122;
- ANSIfy
- remove some trailing spaces/tabs
- minor style nits
 1.1 19-Dec-2001  mhitch branches: 1.1.2;
The ELF counterpart to aout2bb: convert a relocatable ELF object file
to the simple relocatable image used for the amiga bootblock loader.
 1.1.2.3 11-Feb-2002  jdolecek Sync w/ -current.
 1.1.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.2.1 19-Dec-2001  thorpej file chksum.h was added on branch kqueue on 2002-01-10 19:37:26 +0000
 1.2.122.1 16-May-2008  yamt sync with head.
 1.2.120.1 18-May-2008  yamt sync with head.
 1.2.118.1 02-Jun-2008  mjf Sync with HEAD.
 1.30 29-Apr-2022  rin Simplify relocation rules.

Now, both single- and triple-byte encodings in relocation table
represent addrdiff (instead of absolute file offset for the latter).

Shave off one insn for boot.amiga. Also, for elf2bb(1), relocation
overflow is mitigated and detectable at least even if inevitable
(it seems unlikely to happen although).
 1.29 29-Apr-2022  rin Comment that (buffer + 14) stands for reltab in bbstart.s.
 1.28 25-Apr-2022  rin One more style. No binary changes.
 1.27 25-Apr-2022  rin static-ify function bodies of usage() and eval().

No binary changes.
 1.26 25-Apr-2022  rin Wrap looong lines, and misc style/cosmetic fixes.

No binary changes.
 1.25 25-Apr-2022  rin Do not cast return value from malloc(3).

No binary changes.
 1.24 25-Apr-2022  rin - static-ify usage(), intcmp(), and eval()
- remove prototype declaration for main()

NFCI; no binary changes observed for amd64 with -O0.
 1.23 25-Apr-2022  rin Use htobe{16,32}(9) instead of be{16,32}toh(9) where appropriate.

No binary changes both for little and big endian machines.
 1.22 25-Apr-2022  rin u_intN_t --> uintN_t

No binary changes.
 1.21 18-Feb-2022  mlelstv Don't crash when reporting an undefined symbol.
 1.20 18-May-2021  dholland Remove some unused variables, found by gcc -Wall.
 1.19 18-May-2021  dholland Print ptrdiff_t with %td, not %d. Appeared in passing in PR 56188.
 1.18 25-Feb-2021  rin branches: 1.18.4; 1.18.6;
For upcoming FFSv2 support for boot.amiga, dynamically scale its size,
instead of fixing to 32KB.

Old 32KB limit comes from

(1) all R_68K_PC16 symbols get relocated, and

(2) all values in our relocation table for R_68K_32 symbols fit within
16-bit integer.

(1) is already checked in the code. Assertion for (2) is added, but this
limit is satisfied with sufficient margin at the moment. If it is not the
case in the future, we may need to change format for relocation table.
 1.17 20-Aug-2020  riastradh branches: 1.17.2;
mmap MAP_FAILED audit.
 1.16 11-Jul-2011  mrg improve the error message if elf2bb finds we are too large. if elf2bb
fails, make sure that the following nm -u's success doesn't cause make
to believe the target was built. now amiga builds with HAVE_GCC=45
actually fail here, rather than fail at sets time due to missing files.
 1.15 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.14 04-Mar-2007  christos branches: 1.14.40; 1.14.42; 1.14.44;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.13 15-Jun-2006  gdamore branches: 1.13.10;
Make this cross-compile on Solaris, by wrapping the #include of sys/endian.h
with a test for #ifndef HAVE_NBTOOL_CONFIG_H.
 1.12 24-Jan-2006  is branches: 1.12.2; 1.12.6; 1.12.12; 1.12.14;
provide more space for relocs in the secondary bootblock.
Guarantee that relocs and 16 bit pc-relative addressing works.
 1.11 11-Dec-2005  christos branches: 1.11.2;
merge ktrace-lwp.
 1.10 04-Dec-2004  chs branches: 1.10.12;
elf2bb is a host program, don't assume that m68k pointer alignment is
sufficient. fixes PR 27055.
 1.9 28-Nov-2004  jmc Convert remaining host tools for amiga to correct cross tools. Now allows
complete amiga builds on non netbsd/bsd hosts
 1.8 26-Oct-2003  mhitch branches: 1.8.4;
Fix errors in processing the ELF sections. Gcc3 generated a .comment section
which was erroneously being added to the boot image size and loaded into the
boot image.
 1.7 06-Apr-2003  mhitch branches: 1.7.2;
Check if 16 bit PC-relative offset will overflow, and abort if it does.
This will prevent building a bad boot file if it gets too large.
 1.6 20-Jan-2003  simonb The Double-Semi-Colon Police.
 1.5 20-Jul-2002  grant sweep of errx/warnx, remove unnecessary trailing \n
 1.4 18-Jul-2002  mjl Correct obviously switched args to memset()
 1.3 26-Mar-2002  mhitch branches: 1.3.2;
Check for referencing undefined symbols, and bail out if there were any.

Change the -S option to just a flag for Secondary boot, and compute size
of bootfile image from the input. Secondary boot is no longer a fixed size.
 1.2 26-Jan-2002  aymeric - ANSIfy
- remove some trailing spaces/tabs
- minor style nits
 1.1 19-Dec-2001  mhitch branches: 1.1.2;
The ELF counterpart to aout2bb: convert a relocatable ELF object file
to the simple relocatable image used for the amiga bootblock loader.
 1.1.2.5 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.1.2.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.2.3 11-Feb-2002  jdolecek Sync w/ -current.
 1.1.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.2.1 19-Dec-2001  thorpej file elf2bb.c was added on branch kqueue on 2002-01-10 19:37:27 +0000
 1.3.2.2 30-Aug-2002  gehenna catch up with -current.
 1.3.2.1 21-Jul-2002  gehenna catch up with -current.
 1.7.2.5 18-Dec-2004  skrll Sync with HEAD.
 1.7.2.4 29-Nov-2004  skrll Sync with HEAD.
 1.7.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.7.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.7.2.1 03-Aug-2004  skrll Sync with HEAD
 1.8.4.1 06-Apr-2005  he Pull up revision 1.9 (requested by jmc in ticket #1026):
Convert remaining host tools for amiga to correct cross tools.
Now allows complete amiga builds on non-NetBSD and non-BSD hosts.
 1.10.12.2 03-Sep-2007  yamt sync with head.
 1.10.12.1 21-Jun-2006  yamt sync with head.
 1.11.2.1 01-Feb-2006  yamt sync with head.
 1.12.14.1 15-Jun-2006  gdamore Fix to make this work with cross-building. (sys/endian.h should not be
#include'd if HAVE_NBTOOL_CONFIG_H is defined.)
 1.12.12.1 19-Jun-2006  chap Sync with head.
 1.12.6.1 26-Jun-2006  yamt sync with head.
 1.12.2.1 09-Sep-2006  rpaulo sync with head
 1.13.10.1 12-Mar-2007  rmind Sync with HEAD.
 1.14.44.1 16-May-2008  yamt sync with head.
 1.14.42.1 18-May-2008  yamt sync with head.
 1.14.40.1 02-Jun-2008  mjf Sync with HEAD.
 1.17.2.1 03-Apr-2021  thorpej Sync with HEAD.
 1.18.6.1 31-May-2021  cjep sync with head
 1.18.4.1 17-Jun-2021  thorpej Sync w/ HEAD.
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 26-Jan-2002  aymeric branches: 1.2.118; 1.2.120; 1.2.122;
- ANSIfy
- remove some trailing spaces/tabs
- minor style nits
 1.1 19-Dec-2001  mhitch branches: 1.1.2;
The ELF counterpart to aout2bb: convert a relocatable ELF object file
to the simple relocatable image used for the amiga bootblock loader.
 1.1.2.3 11-Feb-2002  jdolecek Sync w/ -current.
 1.1.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.2.1 19-Dec-2001  thorpej file elf2bb.h was added on branch kqueue on 2002-01-10 19:37:27 +0000
 1.2.122.1 16-May-2008  yamt sync with head.
 1.2.120.1 18-May-2008  yamt sync with head.
 1.2.118.1 02-Jun-2008  mjf Sync with HEAD.

RSS XML Feed