changeset 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 a812bb4d3a51
children 543b5d1341d2
files lwlink/script.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;