diff options
Diffstat (limited to 'obj.h')
| -rw-r--r-- | obj.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -4,10 +4,15 @@ extern struct objfile { const char *file; uchar *textbegin, *textend; uchar *code; + uchar dataalign, rodataalign, bssalign; + uint nbss; + vec_of(uchar) data, rodata; } objout; enum relockind { - REL_ABS, + REL_ABS64, + REL_ABS32, + REL_ABS32S, REL_PCREL32, NRELOCKIND, }; @@ -15,6 +20,7 @@ enum section { Snone, Stext, Srodata, Sdata, Sbss }; void objini(const char *); void objdeffunc(const char *nam, bool globl, uint off, uint siz); +uint objnewdat(const char *name, enum section, bool globl, uint siz, uint align); void objreloc(const char *sym, enum relockind, enum section, uint off, vlong addend); void objfini(void); |