diff lwlink/script.c @ 532:b8e9ac01deda

Fix base for entry directive in link scripts to use base 16 Documentation says the entry directive uses base 16. Make that actually true instead of using the "auto base" thing.
author William Astle <lost@l-w.ca>
date Sat, 14 May 2022 12:28:44 -0600
parents 55c1f9a321e9
children 558ee362437e
line wrap: on
line diff
--- a/lwlink/script.c	Fri Mar 18 16:58:40 2022 -0600
+++ b/lwlink/script.c	Sat May 14 12:28:44 2022 -0600
@@ -493,7 +493,7 @@
 			
 			lw_free(linkscript.execsym);
 			
-			eaddr = strtol(entrysym, &ptr2, 0);
+			eaddr = strtol(entrysym, &ptr2, 16);
 			if (*ptr2)
 			{
 				linkscript.execaddr = -1;