Mercurial > hg-old > index.cgi
changeset 131:5276565799bd
Fixed load addresses of chained sections and subsections to actually increment
author | lost |
---|---|
date | Sat, 24 Jan 2009 07:18:01 +0000 |
parents | 8349048d67b3 |
children | b972e45b5e07 |
files | lwlink/trunk/src/link.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lwlink/trunk/src/link.c Sat Jan 24 02:54:03 2009 +0000 +++ b/lwlink/trunk/src/link.c Sat Jan 24 07:18:01 2009 +0000 @@ -74,6 +74,7 @@ sectlist[nsects].forceaddr = 0; } inputfiles[fn] -> sections[sn].loadaddress = laddr; + laddr += inputfiles[fn] -> sections[sn].codesize; nsects++; } } @@ -126,6 +127,7 @@ sectlist[nsects].forceaddr = 0; } inputfiles[fn] -> sections[sn].loadaddress = laddr; + laddr += inputfiles[fn] -> sections[sn].codesize; nsects++; } }