History log of /openbsd-current/sys/arch/sparc64/stand/ofwboot/Makefile
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.28 28-Jan-2024 deraadt

Force -fno-stack-protector on "boot block" that absolutely can't have
a stack protector (probably not even a -fstack-protector-strong) because
the bloat would render them unuseable. This also means the system
compiler can now take on any more it wants, and all the pieces which
can't use the stack protector are properly marked.
ok kettenis


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE
# 1.27 29-Oct-2019 deraadt

Use arc4 to bit-spread the 512-byte random buffer over the .openbsd.randomdata
section, which has grown a fair bit with the introduction of retguard.
Mortimer discovered the repeated 512-byte sequence as retguard keys, and
this resolves the issue. (Chacha does not fit on the media, so 1.5K early
drop RC4 is hopefully sufficient in our KARL link universe)
Version crank the bootblocks. sysupgrade -s will install new bootblocks.
ok djm mortimer


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.26 31-Dec-2018 claudio

Cleanup bootloader code. Compile with -ffreestanding and add ffs.S as a
build dependency which is required because of that. Add various include
files and some prototypes and change some code so that clang does not issue
warnings anymore.
OK kettenis@ deraadt@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.25 06-Nov-2016 tb

Do not create machine@ symlinks in obj as root during includes:, but
defer their creation to later, so that they are owned by BUILDUSER.
This eliminates the last root-owned files in obj/ from 'make build'.
In addition, place a MACHINE == hppa test in hppa/stand/Makefile.inc
to avoid creating bogus symlinks on all other archs.

joint work with & ok natano, "let's try it" deraadt


# 1.24 18-Sep-2016 jsing

Add bcrypt pbkdf support to the softraid crypto boot loader code.

Based on a diff from djm@


# 1.23 11-Sep-2016 jsing

Switch sparc64 boot code to libsa MI softraid.


# 1.22 11-Sep-2016 jsing

Rename softraid boot files, which are currently in an MD location. This
will allow us to bring in a MI softraid.{c,h} in lib/libsa.


# 1.21 10-Sep-2016 jsing

Rename libsa pbkdf2.c to pkcs5_pbkdf2.c so that we match libutil.


# 1.20 30-Jul-2016 guenther

Prep for relro: make sure it's off for any non-PIE stand/ program

ok millert@ kettenis@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.19 26-Nov-2014 stsp

Introduce softraid boot support to sparc64 ofwboot.
sparc64 machines should now be able to boot from softraid raid1 and crypto.
Tested on sun blade100, sunfire v240, and sun t1000 ldom guests.
Lots of encouragement from deraadt@


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.18 30-Aug-2012 pascal

Kill NOPIE and NOPIE_FLAGS in sparc64/stand. Binaries are identical according
to deraadt@, ok kettenis@


# 1.17 21-Aug-2012 pascal

Add NOPIE= bits for sys/arch/*/stand to ensure that bootblocks will always be
built with -fno-pie. This gets the hairiest part of PIE out of the way ...

ok deraadt@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.16 25-Aug-2010 jsing

Remove the SPARC_BOOT_ELF define and associated machinery since it does
not make sense to compile ofwboot without support for ELF. Whilst here,
nuke the unused SPARC_BOOT_NFS define and compile elf64_exec.c as an
object rather than including it in boot.c.

ok miod@


# 1.15 21-Aug-2010 jsing

Rename file to reflect that it handles 64 bit ELF only.

ok miod@ (some time ago)


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.14 28-Aug-2009 jsing

ofwboot can be compiled without -traditional-cpp.

From jsg@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.13 05-Jul-2008 kettenis

Link bootloader at 1MB (same a the Solaris bootloader) instead of 8MB (which
the firmware on the v1280 doesn't like).

tested by many


Revision tags: OPENBSD_4_3_BASE
# 1.12 26-Nov-2007 deraadt

few more dribbles of LIBKERN cleanup


# 1.11 25-Nov-2007 deraadt

libkern, begone. Move to a new mechanism where config(8)'s "file"
directive can select between MI and MD versions of these files. At
the same time, adjust the boot programs to pick exactly what they need,
instead of the 7 or 8 mechanisms previously used.

There will be some fallout from this, but testing it all by myself is a
ridiculously slow process; it will be finished in-tree.

Various developers were very nice and avoided making fun of me when I
was gibbering in the corner..


# 1.10 17-Oct-2007 hshoexer

Do not clean up vers.c as it is not autogenerated anymore.

ok deraadt.


Revision tags: OPENBSD_4_2_BASE
# 1.9 03-May-2007 deraadt

sensible version strings; ok miod


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.8 18-Oct-2004 miod

Do not pass -print-map to the linker anymore, as we don't care about this
output.


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE SMP_SYNC_A SMP_SYNC_B
# 1.7 10-Jun-2003 brad

- rip out support for a.out and 32-bit kernels
- cleanup and simplify Makefile
jason@ ok


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE UBC_BASE UBC_SYNC_A UBC_SYNC_B
# 1.6 06-Sep-2001 jason

branches: 1.6.4;
use some make magic (borrowed from macppc) to build {obj/}machine


# 1.5 22-Aug-2001 art

nostdinc


# 1.4 22-Aug-2001 art

NOMAN


# 1.3 22-Aug-2001 art

another dependency on make bugs.


# 1.2 20-Aug-2001 jason

$OpenBSD$


# 1.1 18-Aug-2001 jason

branches: 1.1.1;
Initial revision


# 1.27 29-Oct-2019 deraadt

Use arc4 to bit-spread the 512-byte random buffer over the .openbsd.randomdata
section, which has grown a fair bit with the introduction of retguard.
Mortimer discovered the repeated 512-byte sequence as retguard keys, and
this resolves the issue. (Chacha does not fit on the media, so 1.5K early
drop RC4 is hopefully sufficient in our KARL link universe)
Version crank the bootblocks. sysupgrade -s will install new bootblocks.
ok djm mortimer


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.26 31-Dec-2018 claudio

Cleanup bootloader code. Compile with -ffreestanding and add ffs.S as a
build dependency which is required because of that. Add various include
files and some prototypes and change some code so that clang does not issue
warnings anymore.
OK kettenis@ deraadt@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.25 06-Nov-2016 tb

Do not create machine@ symlinks in obj as root during includes:, but
defer their creation to later, so that they are owned by BUILDUSER.
This eliminates the last root-owned files in obj/ from 'make build'.
In addition, place a MACHINE == hppa test in hppa/stand/Makefile.inc
to avoid creating bogus symlinks on all other archs.

joint work with & ok natano, "let's try it" deraadt


# 1.24 18-Sep-2016 jsing

Add bcrypt pbkdf support to the softraid crypto boot loader code.

Based on a diff from djm@


# 1.23 11-Sep-2016 jsing

Switch sparc64 boot code to libsa MI softraid.


# 1.22 11-Sep-2016 jsing

Rename softraid boot files, which are currently in an MD location. This
will allow us to bring in a MI softraid.{c,h} in lib/libsa.


# 1.21 10-Sep-2016 jsing

Rename libsa pbkdf2.c to pkcs5_pbkdf2.c so that we match libutil.


# 1.20 30-Jul-2016 guenther

Prep for relro: make sure it's off for any non-PIE stand/ program

ok millert@ kettenis@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.19 26-Nov-2014 stsp

Introduce softraid boot support to sparc64 ofwboot.
sparc64 machines should now be able to boot from softraid raid1 and crypto.
Tested on sun blade100, sunfire v240, and sun t1000 ldom guests.
Lots of encouragement from deraadt@


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.18 30-Aug-2012 pascal

Kill NOPIE and NOPIE_FLAGS in sparc64/stand. Binaries are identical according
to deraadt@, ok kettenis@


# 1.17 21-Aug-2012 pascal

Add NOPIE= bits for sys/arch/*/stand to ensure that bootblocks will always be
built with -fno-pie. This gets the hairiest part of PIE out of the way ...

ok deraadt@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.16 25-Aug-2010 jsing

Remove the SPARC_BOOT_ELF define and associated machinery since it does
not make sense to compile ofwboot without support for ELF. Whilst here,
nuke the unused SPARC_BOOT_NFS define and compile elf64_exec.c as an
object rather than including it in boot.c.

ok miod@


# 1.15 21-Aug-2010 jsing

Rename file to reflect that it handles 64 bit ELF only.

ok miod@ (some time ago)


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.14 28-Aug-2009 jsing

ofwboot can be compiled without -traditional-cpp.

From jsg@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.13 05-Jul-2008 kettenis

Link bootloader at 1MB (same a the Solaris bootloader) instead of 8MB (which
the firmware on the v1280 doesn't like).

tested by many


Revision tags: OPENBSD_4_3_BASE
# 1.12 26-Nov-2007 deraadt

few more dribbles of LIBKERN cleanup


# 1.11 25-Nov-2007 deraadt

libkern, begone. Move to a new mechanism where config(8)'s "file"
directive can select between MI and MD versions of these files. At
the same time, adjust the boot programs to pick exactly what they need,
instead of the 7 or 8 mechanisms previously used.

There will be some fallout from this, but testing it all by myself is a
ridiculously slow process; it will be finished in-tree.

Various developers were very nice and avoided making fun of me when I
was gibbering in the corner..


# 1.10 17-Oct-2007 hshoexer

Do not clean up vers.c as it is not autogenerated anymore.

ok deraadt.


Revision tags: OPENBSD_4_2_BASE
# 1.9 03-May-2007 deraadt

sensible version strings; ok miod


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.8 18-Oct-2004 miod

Do not pass -print-map to the linker anymore, as we don't care about this
output.


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE SMP_SYNC_A SMP_SYNC_B
# 1.7 10-Jun-2003 brad

- rip out support for a.out and 32-bit kernels
- cleanup and simplify Makefile
jason@ ok


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE UBC_BASE UBC_SYNC_A UBC_SYNC_B
# 1.6 06-Sep-2001 jason

branches: 1.6.4;
use some make magic (borrowed from macppc) to build {obj/}machine


# 1.5 22-Aug-2001 art

nostdinc


# 1.4 22-Aug-2001 art

NOMAN


# 1.3 22-Aug-2001 art

another dependency on make bugs.


# 1.2 20-Aug-2001 jason

$OpenBSD$


# 1.1 18-Aug-2001 jason

branches: 1.1.1;
Initial revision


# 1.26 31-Dec-2018 claudio

Cleanup bootloader code. Compile with -ffreestanding and add ffs.S as a
build dependency which is required because of that. Add various include
files and some prototypes and change some code so that clang does not issue
warnings anymore.
OK kettenis@ deraadt@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.25 06-Nov-2016 tb

Do not create machine@ symlinks in obj as root during includes:, but
defer their creation to later, so that they are owned by BUILDUSER.
This eliminates the last root-owned files in obj/ from 'make build'.
In addition, place a MACHINE == hppa test in hppa/stand/Makefile.inc
to avoid creating bogus symlinks on all other archs.

joint work with & ok natano, "let's try it" deraadt


# 1.24 18-Sep-2016 jsing

Add bcrypt pbkdf support to the softraid crypto boot loader code.

Based on a diff from djm@


# 1.23 11-Sep-2016 jsing

Switch sparc64 boot code to libsa MI softraid.


# 1.22 11-Sep-2016 jsing

Rename softraid boot files, which are currently in an MD location. This
will allow us to bring in a MI softraid.{c,h} in lib/libsa.


# 1.21 10-Sep-2016 jsing

Rename libsa pbkdf2.c to pkcs5_pbkdf2.c so that we match libutil.


# 1.20 30-Jul-2016 guenther

Prep for relro: make sure it's off for any non-PIE stand/ program

ok millert@ kettenis@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.19 26-Nov-2014 stsp

Introduce softraid boot support to sparc64 ofwboot.
sparc64 machines should now be able to boot from softraid raid1 and crypto.
Tested on sun blade100, sunfire v240, and sun t1000 ldom guests.
Lots of encouragement from deraadt@


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.18 30-Aug-2012 pascal

Kill NOPIE and NOPIE_FLAGS in sparc64/stand. Binaries are identical according
to deraadt@, ok kettenis@


# 1.17 21-Aug-2012 pascal

Add NOPIE= bits for sys/arch/*/stand to ensure that bootblocks will always be
built with -fno-pie. This gets the hairiest part of PIE out of the way ...

ok deraadt@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.16 25-Aug-2010 jsing

Remove the SPARC_BOOT_ELF define and associated machinery since it does
not make sense to compile ofwboot without support for ELF. Whilst here,
nuke the unused SPARC_BOOT_NFS define and compile elf64_exec.c as an
object rather than including it in boot.c.

ok miod@


# 1.15 21-Aug-2010 jsing

Rename file to reflect that it handles 64 bit ELF only.

ok miod@ (some time ago)


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.14 28-Aug-2009 jsing

ofwboot can be compiled without -traditional-cpp.

From jsg@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.13 05-Jul-2008 kettenis

Link bootloader at 1MB (same a the Solaris bootloader) instead of 8MB (which
the firmware on the v1280 doesn't like).

tested by many


Revision tags: OPENBSD_4_3_BASE
# 1.12 26-Nov-2007 deraadt

few more dribbles of LIBKERN cleanup


# 1.11 25-Nov-2007 deraadt

libkern, begone. Move to a new mechanism where config(8)'s "file"
directive can select between MI and MD versions of these files. At
the same time, adjust the boot programs to pick exactly what they need,
instead of the 7 or 8 mechanisms previously used.

There will be some fallout from this, but testing it all by myself is a
ridiculously slow process; it will be finished in-tree.

Various developers were very nice and avoided making fun of me when I
was gibbering in the corner..


# 1.10 17-Oct-2007 hshoexer

Do not clean up vers.c as it is not autogenerated anymore.

ok deraadt.


Revision tags: OPENBSD_4_2_BASE
# 1.9 03-May-2007 deraadt

sensible version strings; ok miod


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.8 18-Oct-2004 miod

Do not pass -print-map to the linker anymore, as we don't care about this
output.


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE SMP_SYNC_A SMP_SYNC_B
# 1.7 10-Jun-2003 brad

- rip out support for a.out and 32-bit kernels
- cleanup and simplify Makefile
jason@ ok


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE UBC_BASE UBC_SYNC_A UBC_SYNC_B
# 1.6 06-Sep-2001 jason

branches: 1.6.4;
use some make magic (borrowed from macppc) to build {obj/}machine


# 1.5 22-Aug-2001 art

nostdinc


# 1.4 22-Aug-2001 art

NOMAN


# 1.3 22-Aug-2001 art

another dependency on make bugs.


# 1.2 20-Aug-2001 jason

$OpenBSD$


# 1.1 18-Aug-2001 jason

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.25 06-Nov-2016 tb

Do not create machine@ symlinks in obj as root during includes:, but
defer their creation to later, so that they are owned by BUILDUSER.
This eliminates the last root-owned files in obj/ from 'make build'.
In addition, place a MACHINE == hppa test in hppa/stand/Makefile.inc
to avoid creating bogus symlinks on all other archs.

joint work with & ok natano, "let's try it" deraadt


# 1.24 18-Sep-2016 jsing

Add bcrypt pbkdf support to the softraid crypto boot loader code.

Based on a diff from djm@


# 1.23 11-Sep-2016 jsing

Switch sparc64 boot code to libsa MI softraid.


# 1.22 11-Sep-2016 jsing

Rename softraid boot files, which are currently in an MD location. This
will allow us to bring in a MI softraid.{c,h} in lib/libsa.


# 1.21 10-Sep-2016 jsing

Rename libsa pbkdf2.c to pkcs5_pbkdf2.c so that we match libutil.


# 1.20 30-Jul-2016 guenther

Prep for relro: make sure it's off for any non-PIE stand/ program

ok millert@ kettenis@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.19 26-Nov-2014 stsp

Introduce softraid boot support to sparc64 ofwboot.
sparc64 machines should now be able to boot from softraid raid1 and crypto.
Tested on sun blade100, sunfire v240, and sun t1000 ldom guests.
Lots of encouragement from deraadt@


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.18 30-Aug-2012 pascal

Kill NOPIE and NOPIE_FLAGS in sparc64/stand. Binaries are identical according
to deraadt@, ok kettenis@


# 1.17 21-Aug-2012 pascal

Add NOPIE= bits for sys/arch/*/stand to ensure that bootblocks will always be
built with -fno-pie. This gets the hairiest part of PIE out of the way ...

ok deraadt@


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.16 25-Aug-2010 jsing

Remove the SPARC_BOOT_ELF define and associated machinery since it does
not make sense to compile ofwboot without support for ELF. Whilst here,
nuke the unused SPARC_BOOT_NFS define and compile elf64_exec.c as an
object rather than including it in boot.c.

ok miod@


# 1.15 21-Aug-2010 jsing

Rename file to reflect that it handles 64 bit ELF only.

ok miod@ (some time ago)


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.14 28-Aug-2009 jsing

ofwboot can be compiled without -traditional-cpp.

From jsg@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.13 05-Jul-2008 kettenis

Link bootloader at 1MB (same a the Solaris bootloader) instead of 8MB (which
the firmware on the v1280 doesn't like).

tested by many


Revision tags: OPENBSD_4_3_BASE
# 1.12 26-Nov-2007 deraadt

few more dribbles of LIBKERN cleanup


# 1.11 25-Nov-2007 deraadt

libkern, begone. Move to a new mechanism where config(8)'s "file"
directive can select between MI and MD versions of these files. At
the same time, adjust the boot programs to pick exactly what they need,
instead of the 7 or 8 mechanisms previously used.

There will be some fallout from this, but testing it all by myself is a
ridiculously slow process; it will be finished in-tree.

Various developers were very nice and avoided making fun of me when I
was gibbering in the corner..


# 1.10 17-Oct-2007 hshoexer

Do not clean up vers.c as it is not autogenerated anymore.

ok deraadt.


Revision tags: OPENBSD_4_2_BASE
# 1.9 03-May-2007 deraadt

sensible version strings; ok miod


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.8 18-Oct-2004 miod

Do not pass -print-map to the linker anymore, as we don't care about this
output.


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE SMP_SYNC_A SMP_SYNC_B
# 1.7 10-Jun-2003 brad

- rip out support for a.out and 32-bit kernels
- cleanup and simplify Makefile
jason@ ok


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE UBC_BASE UBC_SYNC_A UBC_SYNC_B
# 1.6 06-Sep-2001 jason

branches: 1.6.4;
use some make magic (borrowed from macppc) to build {obj/}machine


# 1.5 22-Aug-2001 art

nostdinc


# 1.4 22-Aug-2001 art

NOMAN


# 1.3 22-Aug-2001 art

another dependency on make bugs.


# 1.2 20-Aug-2001 jason

$OpenBSD$


# 1.1 18-Aug-2001 jason

branches: 1.1.1;
Initial revision