Mercurial > hg-old > index.cgi
comparison src/main.c @ 301:376cc55361c7
section order and address resolution done
author | lost |
---|---|
date | Wed, 21 Jan 2009 05:45:25 +0000 |
parents | 48945dac8178 |
children | 13272197d278 |
comparison
equal
deleted
inserted
replaced
300:48945dac8178 | 301:376cc55361c7 |
---|---|
119 "LWLINK, a HD6309 and MC6809 cross-linker" | 119 "LWLINK, a HD6309 and MC6809 cross-linker" |
120 }; | 120 }; |
121 | 121 |
122 extern void read_files(void); | 122 extern void read_files(void); |
123 extern void setup_script(void); | 123 extern void setup_script(void); |
124 extern void resolve_sections(void); | |
124 | 125 |
125 // main function; parse command line, set up assembler state, and run the | 126 // main function; parse command line, set up assembler state, and run the |
126 // assembler on the first file | 127 // assembler on the first file |
127 int main(int argc, char **argv) | 128 int main(int argc, char **argv) |
128 { | 129 { |
131 { | 132 { |
132 fprintf(stderr, "No input files\n"); | 133 fprintf(stderr, "No input files\n"); |
133 exit(1); | 134 exit(1); |
134 } | 135 } |
135 | 136 |
137 // handle the linker script | |
136 setup_script(); | 138 setup_script(); |
137 | 139 |
138 // read the input files | 140 // read the input files |
139 read_files(); | 141 read_files(); |
140 | 142 |
143 // resolve section bases and section order | |
144 resolve_sections(); | |
145 | |
141 exit(0); | 146 exit(0); |
142 } | 147 } |