git: 9front

Download patch

ref: b54c14a93714961c6a9c4330302c6e705546033e
parent: 37d68b18e213ef6d551f6386f3f7038c381bfdf1
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Mar 28 20:44:09 EDT 2020

pc: fix mp boot regression due mistake in mkfile

the previous mkfile had a sneaky hack that would use
sed to delete the first 2 lines of hex output to strip
the 32 byte long a.out header for apbootstrap and rebootcode.

use 8l -H3 flag to strip the header from the output file.

--- a/sys/src/9/pc/mkfile
+++ b/sys/src/9/pc/mkfile
@@ -139,10 +139,10 @@
 	$LD -l -R1 -s -o $target $prereq
 
 rebootcode.out:		rebootcode.$O
-	$LD -l -R4 -s -o $target -T$REBOOTADDR $prereq
+	$LD -l -R4 -s -o $target -T$REBOOTADDR -H3 $prereq
 
 apbootstrap.out:	apbootstrap.$O
-	$LD -l -R4 -s -o $target -T$APBOOTSTRAP $prereq
+	$LD -l -R4 -s -o $target -T$APBOOTSTRAP -H3 $prereq
 
 sd53c8xx.i:	sd53c8xx.n
 	aux/na $prereq > $target
--