FreeCalypso > hg > freecalypso-reveng
diff ticoff/intstruct.h @ 126:2c6b1319383b
tiobjd: first preparations for adding disasm hints mechanism
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sat, 05 Apr 2014 19:14:43 +0000 |
parents | 5f4141ee175b |
children | a314d6aa9bf1 |
line wrap: on
line diff
--- a/ticoff/intstruct.h Fri Apr 04 18:56:23 2014 +0000 +++ b/ticoff/intstruct.h Sat Apr 05 19:14:43 2014 +0000 @@ -15,8 +15,14 @@ unsigned nsymbols; struct internal_syment **sorted_symbols; struct internal_reloc *int_relocs; + int sectype_hint; + struct hint *hints; }; +#define SECTYPE_CODE 1 +#define SECTYPE_DATA 2 +#define SECTYPE_BSS 3 + struct internal_syment { unsigned number; char *name; @@ -34,3 +40,16 @@ int type; char *typestr; }; + +struct hint { + unsigned pos; + int type; + unsigned nitems; + int linebrk; + struct hint *next; +}; + +#define HINT_D8 1 +#define HINT_D16 2 +#define HINT_ASCIZ 3 +#define HINT_D32 4