summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mkuboot (follow)
Commit message (Collapse)AuthorAgeFilesLines
* use (long long) and %llx to satisfy both 32-bit and 64-bit systems.deraadt2020-04-281-2/+3
|
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-3/+3
| | | | | | 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.
* Prefer <elf.h> to the non portable <sys/exec_elf.h>.mpi2017-10-292-4/+5
| | | | ok jca@, deraadt@
* Add missing quote.kevlo2017-10-271-2/+2
| | | | ok jsg@
* build mkuboot on arm64jsg2017-01-301-3/+2
|
* Add the u-boot arm64 architecture number and map it to "aarch64" tojsg2016-12-201-1/+3
| | | | | | match OpenBSD/arm64 MACHINE_ARCH. ok patrick@
* pledge "stdio" after opening up the input & output files.deraadt2015-10-121-1/+4
| | | | ok jsg
* fstat() of opened fd, rather than stat(), to avoid TOCTOUderaadt2015-10-121-5/+3
| | | | ok jsg
* Missing $OpenBSD$'s.krw2015-01-202-0/+2
| | | | ok deraadt@
* Correctly handle files smaller than an ELF header; reported by drahn@bitrigmiod2014-05-181-5/+3
|
* Fix 'make bsd.umg' by skipping PT_OPENBSD_RANDOMIZE segments, as well asmcbride2014-01-011-5/+24
| | | | | | | | | other innocuous segment types (PT_NOTE, PT_NULL). Handle PT_LOAD, fail on any others. Thanks kettenis and millert for feedback ok deraadt
* s/hphdr/phdr/ to fix compile with DEBUGmcbride2013-12-311-2/+2
| | | | ok miod
* Make sure string and symbol tables are properly aligned.patrick2013-11-111-2/+15
| | | | | From and with drahn@bitrig, fgs@, syl@ Tested by aalm@, ok fgs@
* Fix endianess for big endian architecture.syl2013-11-011-67/+89
| | | | | Works with macppc. ok miod@
* Improve mkuboot's ELF handling. This fixes the problem where mkubootpatrick2013-10-285-81/+289
| | | | | | | running on 64-bit systems does not create valid images. While there, append kernel symbols at the end of the kernel. ok syl@
* Beagle has been replaced by armv7.patrick2013-09-041-2/+2
|
* Let mkuboot recognize native ELF binaries and only output the program headersmiod2013-07-281-11/+165
| | | | | | 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
* Move mkuboot to the proper location.bmercer2013-05-303-0/+403
OK jasper@ get it in deraadt@