diff src/link.c @ 313:c275e7e328d4

Fixed load addresses of chained sections and subsections to actually increment
author lost
date Sat, 24 Jan 2009 07:18:01 +0000
parents 5dc105fd619e
children
line wrap: on
line diff
--- a/src/link.c	Sat Jan 24 02:54:03 2009 +0000
+++ b/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++;
 								}
 							}