changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: bcm64: strip debug symbols to make sure .img file is multiple of 4 bytes

changeset 7311: 686cdda01118
parent 7310: 55d93e47a2de
child 7312: 4dbf2522f668
author: cinap_lenrek@felloff.net
date: Thu, 25 Jul 2019 08:52:46 +0200
files: sys/src/9/bcm64/mkfile
description: bcm64: strip debug symbols to make sure .img file is multiple of 4 bytes

the raspberry pi4 firmware refuses to enable the GIC interrup controller
for arm64 when the .img file is not a multiple of 4 bytes. yes, this
is insane and nowhere documented.
     1.1--- a/sys/src/9/bcm64/mkfile
     1.2+++ b/sys/src/9/bcm64/mkfile
     1.3@@ -72,7 +72,7 @@ 9:V: $p$CONF s$p$CONF
     1.4 $p$CONF:DQ:	$CONF.c $OBJ $LIB mkfile
     1.5 	$CC $CFLAGS '-DKERNDATE='`{date -n} $CONF.c
     1.6 	echo '# linking raw kernel'	# H6: no headers, data segment aligned
     1.7-	$LD -l -o $target -H6 -R0x10000 -T$loadaddr $OBJ $CONF.$O $LIB
     1.8+	$LD -s -l -o $target -H6 -R0x10000 -T$loadaddr $OBJ $CONF.$O $LIB
     1.9 
    1.10 s$p$CONF:DQ:	$CONF.$O $OBJ $LIB
    1.11 	echo '# linking kernel with symbols'