Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/arch/i386/stand



Module Name:    src
Committed By:   christos
Date:           Fri Sep 26 14:12:50 UTC 2008

Modified Files:
        src/sys/arch/i386/stand/boot: boot2.c
        src/sys/arch/i386/stand/dosboot: main.c
        src/sys/arch/i386/stand/lib: exec.c libi386.h
        src/sys/arch/i386/stand/netboot: main.c
        src/sys/arch/i386/stand/pxeboot: main.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -r1.35 -r1.36 src/sys/arch/i386/stand/boot/boot2.c
cvs rdiff -r1.23 -r1.24 src/sys/arch/i386/stand/dosboot/main.c
cvs rdiff -r1.28 -r1.29 src/sys/arch/i386/stand/lib/exec.c
cvs rdiff -r1.24 -r1.25 src/sys/arch/i386/stand/lib/libi386.h
cvs rdiff -r1.11 -r1.12 src/sys/arch/i386/stand/netboot/main.c
cvs rdiff -r1.14 -r1.15 src/sys/arch/i386/stand/pxeboot/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index