aboutsummaryrefslogtreecommitdiffhomepage
path: root/obj.h
blob: a0d54da55d17f7f8985379581ca5aba1e0abc0da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "common.h"

extern struct objfile {
   const char *file;
   uchar *textbegin, *textend;
   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: */