OLD | NEW |
1 // Inferno utils/6l/obj.c | 1 // Inferno utils/6l/obj.c |
2 // http://code.google.com/p/inferno-os/source/browse/utils/6l/obj.c | 2 // http://code.google.com/p/inferno-os/source/browse/utils/6l/obj.c |
3 // | 3 // |
4 // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. | 4 // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. |
5 // Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net) | 5 // Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net) |
6 // Portions Copyright © 1997-1999 Vita Nuova Limited | 6 // Portions Copyright © 1997-1999 Vita Nuova Limited |
7 // Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuov
a.com) | 7 // Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuov
a.com) |
8 // Portions Copyright © 2004,2006 Bruce Ellis | 8 // Portions Copyright © 2004,2006 Bruce Ellis |
9 // Portions Copyright © 2005-2007 C H Forsyth (forsyth@terzarima.net) | 9 // Portions Copyright © 2005-2007 C H Forsyth (forsyth@terzarima.net) |
10 // Revisions Copyright © 2000-2007 Lucent Technologies Inc. and others | 10 // Revisions Copyright © 2000-2007 Lucent Technologies Inc. and others |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 if(HEADTYPE == 6) | 238 if(HEADTYPE == 6) |
239 domacho(); | 239 domacho(); |
240 dostkoff(); | 240 dostkoff(); |
241 paramspace = "SP"; /* (FP) now (SP) on output */ | 241 paramspace = "SP"; /* (FP) now (SP) on output */ |
242 if(debug['p']) | 242 if(debug['p']) |
243 if(debug['1']) | 243 if(debug['1']) |
244 doprof1(); | 244 doprof1(); |
245 else | 245 else |
246 doprof2(); | 246 doprof2(); |
247 span(); | 247 span(); |
| 248 pclntab(); |
| 249 symtab(); |
248 dodata(); | 250 dodata(); |
249 address(); | 251 address(); |
250 reloc(); | 252 reloc(); |
251 asmb(); | 253 asmb(); |
252 undef(); | 254 undef(); |
253 if(debug['v']) { | 255 if(debug['v']) { |
254 Bprint(&bso, "%5.2f cpu time\n", cputime()); | 256 Bprint(&bso, "%5.2f cpu time\n", cputime()); |
255 Bprint(&bso, "%d symbols\n", nsymbol); | 257 Bprint(&bso, "%d symbols\n", nsymbol); |
256 Bprint(&bso, "%d sizeof adr\n", sizeof(Adr)); | 258 Bprint(&bso, "%d sizeof adr\n", sizeof(Adr)); |
257 Bprint(&bso, "%d sizeof prog\n", sizeof(Prog)); | 259 Bprint(&bso, "%d sizeof prog\n", sizeof(Prog)); |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 { | 720 { |
719 Prog *p; | 721 Prog *p; |
720 | 722 |
721 p = prg(); | 723 p = prg(); |
722 p->link = q->link; | 724 p->link = q->link; |
723 q->link = p; | 725 q->link = p; |
724 p->line = q->line; | 726 p->line = q->line; |
725 p->mode = q->mode; | 727 p->mode = q->mode; |
726 return p; | 728 return p; |
727 } | 729 } |
OLD | NEW |