changeset 3134:afd35e662b2b

Use lwtools noforwardrefmax pragma by default The in-progress development version of lwasm changes the default value of forwardrefmax with the effect that some pc-relative forward branches end up as 16-bit when they could be 8-bit. This change in behaviour can cause mismatched binaries between builders using version 4.13 and builders using later versions. This can have a particularly bad effect on builds of level2 kernels, because the current code has hand-inserted padding to align the end-point of the code. The fix for all of this is to change the command-line options to force the old default behaviour. http://lwtools.projects.l-w.ca/hg/index.cgi/rev/b4825b42c151
author Neal Crook <foofoobedoo@gmail.com>
date Fri, 13 Jan 2017 20:49:14 +0000
parents 815cc5a9d9d3
children 5095f2b3c81a
files rules.mak
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/rules.mak	Fri Jan 13 20:36:04 2017 +0000
+++ b/rules.mak	Fri Jan 13 20:49:14 2017 +0000
@@ -35,9 +35,9 @@
 
 # Use the cross assembler
 #AS		= os9asm -i=$(DEFSDIR)
-AS		= lwasm --6309 --format=os9 --pragma=pcaspcr,nosymbolcase,condundefzero,undefextern,dollarnotlocal --includedir=. --includedir=$(DEFSDIR)
-ASROM		= lwasm --6309 --format=raw --pragma=pcaspcr,nosymbolcase,condundefzero,undefextern,dollarnotlocal --includedir=. --includedir=$(DEFSDIR)
-ASBIN		= lwasm --6309 --format=decb --pragma=pcaspcr,nosymbolcase,condundefzero,undefextern,dollarnotlocal --includedir=. --includedir=$(DEFSDIR)
+AS		= lwasm --6309 --format=os9 --pragma=pcaspcr,nosymbolcase,condundefzero,undefextern,dollarnotlocal,noforwardrefmax --includedir=. --includedir=$(DEFSDIR)
+ASROM		= lwasm --6309 --format=raw --pragma=pcaspcr,nosymbolcase,condundefzero,undefextern,dollarnotlocal,noforwardrefmax --includedir=. --includedir=$(DEFSDIR)
+ASBIN		= lwasm --6309 --format=decb --pragma=pcaspcr,nosymbolcase,condundefzero,undefextern,dollarnotlocal,noforwardrefmax --includedir=. --includedir=$(DEFSDIR)
 ASOUT		= -o
 ifdef LISTDIR
 ASOUT		= --list=$(LISTDIR)/$@.lst --symbols -o
@@ -48,7 +48,7 @@
 endif
 
 # RMA/RLINK
-ASM		= lwasm --6309 --format=obj --pragma=pcaspcr,condundefzero,undefextern,dollarnotlocal,export --includedir=. --includedir=$(DEFSDIR)
+ASM		= lwasm --6309 --format=obj --pragma=pcaspcr,condundefzero,undefextern,dollarnotlocal,noforwardrefmax,export --includedir=. --includedir=$(DEFSDIR)
 LINKER		= lwlink --format=os9
 LWAR		= lwar -c