Mercurial > hg > index.cgi
diff lwlink/objdump.c @ 156:fc8386b13399
Added 'constant' sections to object file handling for lwasm and lwlink
author | lost@l-w.ca |
---|---|
date | Sun, 28 Aug 2011 02:06:42 -0600 |
parents | fdc11ef4115b |
children | 346966cffeef |
line wrap: on
line diff
--- a/lwlink/objdump.c Sun Aug 28 00:07:15 2011 -0600 +++ b/lwlink/objdump.c Sun Aug 28 02:06:42 2011 -0600 @@ -154,6 +154,7 @@ long cc; int val; int bss; + int constant; static char *opernames[] = { "?", @@ -179,6 +180,7 @@ while (1) { bss = 0; + constant = 0; // bail out if no more sections if (!(CURBYTE())) @@ -197,7 +199,11 @@ printf(" FLAG: BSS\n"); bss = 1; break; - + case 0x02: + printf(" FLAG: CONSTANT\n"); + constant = 1; + break; + default: printf(" FLAG: %02X (unknown)\n", CURBYTE()); break;