Source-Changes archive

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

CVS commit: src/sys/arch/sun2/conf



Module Name:    src
Committed By:   christos
Date:           Mon Aug 30 18:59:57 UTC 2021

Modified Files:
        src/sys/arch/sun2/conf: Makefile.sun2 RAMDISK
Added Files:
        src/sys/arch/sun2/conf: kern.ldscript

Log Message:
use -ffunction-sections -fdata-sections --gc-sections with an ldscript
that keeps _start. This deletes all unused code and shrinks the RAMDISK
kernel enough to be able to boot again:

-rwxr-xr-x  1 root  src  2519436 Aug 30 06:38 RAMDISK.1/netbsd*
-rwxr-xr-x  1 root  src  2104440 Aug 30 07:41 RAMDISK/netbsd*

   text    data     bss     dec     hex filename
   1525412  686252   63552 2275216  22b790 RAMDISK.1/netbsd
   1098524  686400   67008 1851932  1c421c RAMDISK/netbsd


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/sun2/conf/Makefile.sun2
cvs rdiff -u -r1.60 -r1.61 src/sys/arch/sun2/conf/RAMDISK
cvs rdiff -u -r0 -r1.1 src/sys/arch/sun2/conf/kern.ldscript

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