summaryrefslogtreecommitdiff
path: root/sys/lib/libsa/loadfile.c
AgeCommit message (Collapse)Author
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2008-03-31Correctly load ZMAGIC a.out binaries.Miod Vallat
2008-03-31Fix format strings in a.out loader.Miod Vallat
2008-03-30Let this compile with BOOT_AOUT defined.Miod Vallat
2007-06-26Fix the description of loadfile() semantics in comment (and kill "andTom Cosgrove
and" at the same time).
2007-05-30Pull out the ELF loadfile pieces from the standalone libraries, so thatTom Cosgrove
both 32- and 64-bit versions can be created (previously only one or the other could be built for a given boot loader). Use this to allow the i386 and amd64 boot blocks to boot both ELF32 and ELF64 kernels (i.e. amd64 boot blocks can now load i386 kernels, and vice versa). Obviously the system must support LONG mode in order to successfully run the amd64 kernel once it is loaded. Advice and discussions from/with dale@ (going back three years). Much testing nick@ and todd@; thanks.
2007-01-04Revert 1.11 and load .shstrtab, as it is currently needed for /dev/ksymsMiod Vallat
proper operation.
2006-12-30do not load unneeded stringtab sections; avoids backward seeking; from ↵Michael Shalayeff
netbsd; tested by miod@ and martin@; deraadt@ ok
2005-07-13do not leak memory if read()ing section headers fails; from Andrey Matveev ↵Michael Shalayeff
<evol@online.ptt.ru>
2004-02-10Allow /boot to load read-only data segments in ELF kernels.Tom Cosgrove
Thanks to miod@ for testing on many archs. ok deraadt@.
2003-08-11load file in one pass avoiding seeking the headers back and forth; miod@ ↵Michael Shalayeff
testing & ok (two months ago and then i forgot ;)
2003-08-11ansification and knf and protosTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-01strcpy/strcat/sprintf removal in all bootblocks. various testing byTheo de Raadt
various people. outside of some messy things in src/gnu, only one thing in the main tree now violates this rule: bind
2003-05-07plug a memory leakMichael Shalayeff
2002-11-11avoid uninitialized warnings from gcc; art@ okMichael Shalayeff
2002-03-14First round of __P removal in sysTodd C. Miller
2001-06-23Add MI loadfile support, from NetBSDDale Rahn
This is currently only used on powerpc, but may be looked at for other architectures. Piece of the support to have kernel symbols on powerpc.