aboutsummaryrefslogtreecommitdiffhomepage
path: root/obj.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-10-19 08:09:09 +0200
committerlemon <lsof@mailbox.org>2025-10-19 08:09:09 +0200
commitdea8fd171acb54b6d9685422d5e391fb55074008 (patch)
tree2c149892f35c5183c9b2a1da4ab437228dc432ef /obj.h
parent3437945692f2b87883a4f066473c9deed50f25f5 (diff)
Organize source files into directories
Diffstat (limited to 'obj.h')
-rw-r--r--obj.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/obj.h b/obj.h
deleted file mode 100644
index fffc54c..0000000
--- a/obj.h
+++ /dev/null
@@ -1,30 +0,0 @@
-#include "common.h"
-
-extern struct objfile {
- const char *infile, *outfile;
- uchar *textbegin, *textend;
- uchar *code;
- uchar dataalign, rodataalign, bssalign;
- uint nbss;
- vec_of(uchar) data, rodata;
-} objout;
-
-enum relockind {
- REL_ABS64,
- REL_ABS32,
- REL_ABS32S,
- REL_PCREL32,
- REL_PLT32,
- REL_GOTPCRELX,
- REL_GOTPCRELX_REX,
- NRELOCKIND,
-};
-enum section { Snone, Stext, Srodata, Sdata, Sbss };
-
-void objini(const char *infile, const char *outfile);
-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);
-
-/* vim:set ts=3 sw=3 expandtab: */