Module Name: src Committed By: martin Date: Sat Nov 16 16:59:15 UTC 2019
Modified Files: src/sys/arch/zaurus/conf [netbsd-9]: GENERIC INSTALL src/sys/arch/zaurus/stand/zbsdmod [netbsd-9]: zbsdmod.c src/sys/arch/zaurus/zaurus [netbsd-9]: machdep.c Log Message: Pull up following revision(s) (requested by tsutsui in ticket #431): sys/arch/zaurus/conf/GENERIC: revision 1.89 sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.12 sys/arch/zaurus/conf/INSTALL: revision 1.40 sys/arch/zaurus/zaurus/machdep.c: revision 1.45 Make zaurus kernels use symbol tables loaded by the bootloader. Now COPY_SYMTAB is no longer necessary and it saves ~500kbytes of GENERIC, so re-enable options DDB (i.e. revert GENERIC rev 1.85). Also fix zbsdmod.o (a kernel loader for Zaurus Linux) to load symbols at a proper address as the MI sys/lib/libsa/loadfile_elf32.c does. No particular comment on port-zaurus@: https://mail-index.netbsd.org/port-zaurus/2019/11/11/msg000086.html Note zbsdmod.c (derived from OpenBSD/zaurus) assumed that the loaded kernels had "esym" variable at the top of its data section and implicitly overwrote it with the address of loaded symbol tables. OpenBSD/zaurus kernels used the esym value written by the zbsdmod.o to initialize ksyms(4) on startup, but we will avoid such implicit MD interface between the bootloader and kernels (though we don't bother to add a symbol address value into bootinfo but just assume symbols are loaded at end[] of a loaded kernel, as per the MI libsa loadfile() implementation). Worth to pullup to both netbsd-8 and netbsd-9. To generate a diff of this commit: cvs rdiff -u -r1.86.2.1 -r1.86.2.2 src/sys/arch/zaurus/conf/GENERIC cvs rdiff -u -r1.39 -r1.39.4.1 src/sys/arch/zaurus/conf/INSTALL cvs rdiff -u -r1.9.34.1 -r1.9.34.2 \ src/sys/arch/zaurus/stand/zbsdmod/zbsdmod.c cvs rdiff -u -r1.42 -r1.42.2.1 src/sys/arch/zaurus/zaurus/machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.