]> git.localhorst.tv Git - l2e.git/blobdiff - src/loader/Compiler.h
ref and load images in l2o files
[l2e.git] / src / loader / Compiler.h
index 7afe633afd655db4434aaf283abbb32990785084..2f89752690664d3a33426621cc33a3a4f8c92a30 100644 (file)
@@ -32,10 +32,11 @@ private:
        void WriteHeader(std::ostream &);
        void WriteExports(std::ostream &);
        void WriteExternals(std::ostream &);
+       void WriteImages(std::ostream &);
 
        void Relocate(std::iostream &);
        void RelocateArray(char *, int size);
-       void Relocate(char *, const TypeDescription &);
+       void Relocate(unsigned int pos, char *dest, const TypeDescription &);
 
        void PrepareExport(Export &, const std::string &);
        void PrepareExternal(External &, const Interpreter::PostponedDefinition &);
@@ -49,11 +50,10 @@ private:
 private:
        const Interpreter &intp;
 
-       unsigned int cursor;
-
        ObjectFileHeader fileHeader;
 
        std::map<const void *, unsigned int> addressMap;
+       std::map<unsigned int, void *> images;
 
 };