Mercurial > hg-old > index.cgi
diff lwlink/trunk/src/main.c @ 119:8bc00221ae89
section order and address resolution done
author | lost |
---|---|
date | Wed, 21 Jan 2009 05:45:25 +0000 |
parents | d450943305a7 |
children | 7bc853cb2ca9 |
line wrap: on
line diff
--- a/lwlink/trunk/src/main.c Wed Jan 21 05:13:36 2009 +0000 +++ b/lwlink/trunk/src/main.c Wed Jan 21 05:45:25 2009 +0000 @@ -121,6 +121,7 @@ extern void read_files(void); extern void setup_script(void); +extern void resolve_sections(void); // main function; parse command line, set up assembler state, and run the // assembler on the first file @@ -133,10 +134,14 @@ exit(1); } + // handle the linker script setup_script(); // read the input files read_files(); + // resolve section bases and section order + resolve_sections(); + exit(0); }