LEFT | RIGHT |
(no file at all) | |
1 // Inferno utils/8l/obj.c | 1 // Inferno utils/8l/obj.c |
2 // http://code.google.com/p/inferno-os/source/browse/utils/8l/obj.c | 2 // http://code.google.com/p/inferno-os/source/browse/utils/8l/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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 Binit(&bso, 1, OWRITE); | 82 Binit(&bso, 1, OWRITE); |
83 listinit(); | 83 listinit(); |
84 memset(debug, 0, sizeof(debug)); | 84 memset(debug, 0, sizeof(debug)); |
85 nerrors = 0; | 85 nerrors = 0; |
86 outfile = nil; | 86 outfile = nil; |
87 HEADTYPE = -1; | 87 HEADTYPE = -1; |
88 INITTEXT = -1; | 88 INITTEXT = -1; |
89 INITDAT = -1; | 89 INITDAT = -1; |
90 INITRND = -1; | 90 INITRND = -1; |
91 INITENTRY = 0; | 91 INITENTRY = 0; |
| 92 LIBINITENTRY = 0; |
92 nuxiinit(); | 93 nuxiinit(); |
93 | 94 |
94 flagcount("1", "use alternate profiling code", &debug['1']); | 95 flagcount("1", "use alternate profiling code", &debug['1']); |
95 flagfn1("B", "info: define ELF NT_GNU_BUILD_ID note", addbuildinfo); | 96 flagfn1("B", "info: define ELF NT_GNU_BUILD_ID note", addbuildinfo); |
96 flagstr("E", "sym: entry symbol", &INITENTRY); | 97 flagstr("E", "sym: entry symbol", &INITENTRY); |
97 flagint32("D", "addr: data address", &INITDAT); | 98 flagint32("D", "addr: data address", &INITDAT); |
98 flagfn1("I", "interp: set ELF interp", setinterp); | 99 flagfn1("I", "interp: set ELF interp", setinterp); |
99 flagfn1("L", "dir: add dir to library path", Lflag); | 100 flagfn1("L", "dir: add dir to library path", Lflag); |
100 flagfn1("H", "head: header type", setheadtype); | 101 flagfn1("H", "head: header type", setheadtype); |
101 flagcount("K", "add stack underflow checks", &debug['K']); | 102 flagcount("K", "add stack underflow checks", &debug['K']); |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
741 appendp(Prog *q) | 742 appendp(Prog *q) |
742 { | 743 { |
743 Prog *p; | 744 Prog *p; |
744 | 745 |
745 p = prg(); | 746 p = prg(); |
746 p->link = q->link; | 747 p->link = q->link; |
747 q->link = p; | 748 q->link = p; |
748 p->line = q->line; | 749 p->line = q->line; |
749 return p; | 750 return p; |
750 } | 751 } |
LEFT | RIGHT |