Mercurial > hg > index.cgi
comparison 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 |
comparison
equal
deleted
inserted
replaced
531:a812bb4d3a51 | 532:b8e9ac01deda |
---|---|
491 int eaddr; | 491 int eaddr; |
492 char *ptr2; | 492 char *ptr2; |
493 | 493 |
494 lw_free(linkscript.execsym); | 494 lw_free(linkscript.execsym); |
495 | 495 |
496 eaddr = strtol(entrysym, &ptr2, 0); | 496 eaddr = strtol(entrysym, &ptr2, 16); |
497 if (*ptr2) | 497 if (*ptr2) |
498 { | 498 { |
499 linkscript.execaddr = -1; | 499 linkscript.execaddr = -1; |
500 linkscript.execsym = lw_strdup(entrysym); | 500 linkscript.execsym = lw_strdup(entrysym); |
501 } | 501 } |