History log of /openbsd-current/usr.sbin/mkuboot/mkuboot.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.11 22-Jun-2021 jmc

reduce verbosity of usage(), making it match SYNOPSIS;
ok kettenis


# 1.10 01-Jun-2021 jsg

amd64 U-Boot arch code should be ARCH_X86_64 not ARCH_IA64


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
# 1.9 28-Jun-2019 deraadt

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.8 29-Oct-2017 mpi

Prefer <elf.h> to the non portable <sys/exec_elf.h>.

ok jca@, deraadt@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.7 20-Dec-2016 jsg

Add the u-boot arm64 architecture number and map it to "aarch64" to
match OpenBSD/arm64 MACHINE_ARCH.

ok patrick@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.6 12-Oct-2015 deraadt

pledge "stdio" after opening up the input & output files.
ok jsg


# 1.5 12-Oct-2015 deraadt

fstat() of opened fd, rather than stat(), to avoid TOCTOU
ok jsg


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.4 18-May-2014 miod

Correctly handle files smaller than an ELF header; reported by drahn@bitrig


Revision tags: OPENBSD_5_5_BASE
# 1.3 28-Oct-2013 patrick

Improve mkuboot's ELF handling. This fixes the problem where mkuboot
running on 64-bit systems does not create valid images.
While there, append kernel symbols at the end of the kernel.

ok syl@


Revision tags: OPENBSD_5_4_BASE
# 1.2 28-Jul-2013 miod

Let mkuboot recognize native ELF binaries and only output the program headers
area in this case, to save the need for `objcopy -O binary'; this will make
beagle install/upgrade processes easier until they get a native bootloader.
Tested by florian@ on panda ES and rapha@ on BeagleBone


# 1.1 30-May-2013 bmercer

Move mkuboot to the proper location.
OK jasper@ get it in deraadt@


# 1.10 01-Jun-2021 jsg

amd64 U-Boot arch code should be ARCH_X86_64 not ARCH_IA64


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
# 1.9 28-Jun-2019 deraadt

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.8 29-Oct-2017 mpi

Prefer <elf.h> to the non portable <sys/exec_elf.h>.

ok jca@, deraadt@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.7 20-Dec-2016 jsg

Add the u-boot arm64 architecture number and map it to "aarch64" to
match OpenBSD/arm64 MACHINE_ARCH.

ok patrick@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.6 12-Oct-2015 deraadt

pledge "stdio" after opening up the input & output files.
ok jsg


# 1.5 12-Oct-2015 deraadt

fstat() of opened fd, rather than stat(), to avoid TOCTOU
ok jsg


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.4 18-May-2014 miod

Correctly handle files smaller than an ELF header; reported by drahn@bitrig


Revision tags: OPENBSD_5_5_BASE
# 1.3 28-Oct-2013 patrick

Improve mkuboot's ELF handling. This fixes the problem where mkuboot
running on 64-bit systems does not create valid images.
While there, append kernel symbols at the end of the kernel.

ok syl@


Revision tags: OPENBSD_5_4_BASE
# 1.2 28-Jul-2013 miod

Let mkuboot recognize native ELF binaries and only output the program headers
area in this case, to save the need for `objcopy -O binary'; this will make
beagle install/upgrade processes easier until they get a native bootloader.
Tested by florian@ on panda ES and rapha@ on BeagleBone


# 1.1 30-May-2013 bmercer

Move mkuboot to the proper location.
OK jasper@ get it in deraadt@


# 1.9 28-Jun-2019 deraadt

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.8 29-Oct-2017 mpi

Prefer <elf.h> to the non portable <sys/exec_elf.h>.

ok jca@, deraadt@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.7 20-Dec-2016 jsg

Add the u-boot arm64 architecture number and map it to "aarch64" to
match OpenBSD/arm64 MACHINE_ARCH.

ok patrick@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.6 12-Oct-2015 deraadt

pledge "stdio" after opening up the input & output files.
ok jsg


# 1.5 12-Oct-2015 deraadt

fstat() of opened fd, rather than stat(), to avoid TOCTOU
ok jsg


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.4 18-May-2014 miod

Correctly handle files smaller than an ELF header; reported by drahn@bitrig


Revision tags: OPENBSD_5_5_BASE
# 1.3 28-Oct-2013 patrick

Improve mkuboot's ELF handling. This fixes the problem where mkuboot
running on 64-bit systems does not create valid images.
While there, append kernel symbols at the end of the kernel.

ok syl@


Revision tags: OPENBSD_5_4_BASE
# 1.2 28-Jul-2013 miod

Let mkuboot recognize native ELF binaries and only output the program headers
area in this case, to save the need for `objcopy -O binary'; this will make
beagle install/upgrade processes easier until they get a native bootloader.
Tested by florian@ on panda ES and rapha@ on BeagleBone


# 1.1 30-May-2013 bmercer

Move mkuboot to the proper location.
OK jasper@ get it in deraadt@


# 1.8 29-Oct-2017 mpi

Prefer <elf.h> to the non portable <sys/exec_elf.h>.

ok jca@, deraadt@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.7 20-Dec-2016 jsg

Add the u-boot arm64 architecture number and map it to "aarch64" to
match OpenBSD/arm64 MACHINE_ARCH.

ok patrick@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.6 12-Oct-2015 deraadt

pledge "stdio" after opening up the input & output files.
ok jsg


# 1.5 12-Oct-2015 deraadt

fstat() of opened fd, rather than stat(), to avoid TOCTOU
ok jsg


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.4 18-May-2014 miod

Correctly handle files smaller than an ELF header; reported by drahn@bitrig


Revision tags: OPENBSD_5_5_BASE
# 1.3 28-Oct-2013 patrick

Improve mkuboot's ELF handling. This fixes the problem where mkuboot
running on 64-bit systems does not create valid images.
While there, append kernel symbols at the end of the kernel.

ok syl@


Revision tags: OPENBSD_5_4_BASE
# 1.2 28-Jul-2013 miod

Let mkuboot recognize native ELF binaries and only output the program headers
area in this case, to save the need for `objcopy -O binary'; this will make
beagle install/upgrade processes easier until they get a native bootloader.
Tested by florian@ on panda ES and rapha@ on BeagleBone


# 1.1 30-May-2013 bmercer

Move mkuboot to the proper location.
OK jasper@ get it in deraadt@