diff options
Diffstat (limited to 'obj.h')
| -rw-r--r-- | obj.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -6,7 +6,16 @@ extern struct objfile { uchar *code; } objout; +enum relockind { + REL_ABS, + REL_PCREL32, + NRELOCKIND, +}; +enum section { Snone, Stext, Srodata, Sdata, Sbss }; + void objini(const char *); +void objdeffunc(const char *nam, bool globl, uint off, uint siz); +void objreloc(const char *sym, enum relockind, enum section, uint off, vlong addend); void objfini(void); /* vim:set ts=3 sw=3 expandtab: */ |