Up to [cvs.NetBSD.org] / src / sys / arch / i386 / stand / dosboot
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: netbsd-5-1-RC3
Revision 1.24 / (download) - annotate - [select for diffs], Fri Sep 26 14:12:49 2008 UTC (15 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4,
netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
haad-nbase2,
haad-dm-base2,
haad-dm-base1,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Branch point for: nick-hppapmap
Changes since 1.23: +4 -3
lines
Diff to previous 1.23 (colored)
The structure of our elf kernel is: elf header/program headers/text/data/note/ section headers/symbol table/string table We need to read the section headers first to find the offset of the note and thus we requite backwards seek. The only reason we need to read the note is to find the version of the kernel, and this seems not to be used anywhere. We could potentially change the kernel ldscript to add the note information in the program headers, but dealing with ldscripts is painful and producing a more complex binary could break some dumb standalone loader. So the simple solution is to just disable the note loading for floppies which is what this patch does. If someone wants to fix it in a better way, be my guest.