OLD | NEW |
1 // Inferno utils/6l/span.c | 1 // Inferno utils/6l/span.c |
2 // http://code.google.com/p/inferno-os/source/browse/utils/6l/span.c | 2 // http://code.google.com/p/inferno-os/source/browse/utils/6l/span.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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 dosymtype(); | 334 dosymtype(); |
335 | 335 |
336 // Define these so that they'll get put into the symbol table. | 336 // Define these so that they'll get put into the symbol table. |
337 // data.c:/^address will provide the actual values. | 337 // data.c:/^address will provide the actual values. |
338 xdefine("text", STEXT, 0); | 338 xdefine("text", STEXT, 0); |
339 xdefine("etext", STEXT, 0); | 339 xdefine("etext", STEXT, 0); |
340 xdefine("typelink", SRODATA, 0); | 340 xdefine("typelink", SRODATA, 0); |
341 xdefine("etypelink", SRODATA, 0); | 341 xdefine("etypelink", SRODATA, 0); |
342 xdefine("rodata", SRODATA, 0); | 342 xdefine("rodata", SRODATA, 0); |
343 xdefine("erodata", SRODATA, 0); | 343 xdefine("erodata", SRODATA, 0); |
| 344 if (debug['U']) { |
| 345 xdefine("datarelro", SDATARELRO, 0); |
| 346 xdefine("edatarelro", SDATARELRO, 0); |
| 347 } |
344 xdefine("gcdata", SGCDATA, 0); | 348 xdefine("gcdata", SGCDATA, 0); |
345 xdefine("egcdata", SGCDATA, 0); | 349 xdefine("egcdata", SGCDATA, 0); |
346 xdefine("gcbss", SGCBSS, 0); | 350 xdefine("gcbss", SGCBSS, 0); |
347 xdefine("egcbss", SGCBSS, 0); | 351 xdefine("egcbss", SGCBSS, 0); |
348 xdefine("noptrdata", SNOPTRDATA, 0); | 352 xdefine("noptrdata", SNOPTRDATA, 0); |
349 xdefine("enoptrdata", SNOPTRDATA, 0); | 353 xdefine("enoptrdata", SNOPTRDATA, 0); |
350 xdefine("data", SDATA, 0); | 354 xdefine("data", SDATA, 0); |
351 xdefine("edata", SDATA, 0); | 355 xdefine("edata", SDATA, 0); |
352 xdefine("bss", SBSS, 0); | 356 xdefine("bss", SBSS, 0); |
353 xdefine("ebss", SBSS, 0); | 357 xdefine("ebss", SBSS, 0); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 if(strncmp(s->name, "go.string.", 10) == 0) { | 395 if(strncmp(s->name, "go.string.", 10) == 0) { |
392 s->type = SGOSTRING; | 396 s->type = SGOSTRING; |
393 s->hide = 1; | 397 s->hide = 1; |
394 } | 398 } |
395 } | 399 } |
396 | 400 |
397 if(debug['s']) | 401 if(debug['s']) |
398 return; | 402 return; |
399 genasmsym(putsymb); | 403 genasmsym(putsymb); |
400 } | 404 } |
OLD | NEW |