From 54f1b829fe53c48b82440e7c8482e2b6ca397995 Mon Sep 17 00:00:00 2001 From: "sra@google.com" Date: Sat, 18 Jul 2009 03:28:40 +0000 Subject: Code changes to get the code to compile under GCC. Courgette still only knows how to compress Windows x86 executables. But now you can compress them on linux. BUG=none TEST=none Review URL: http://codereview.chromium.org/149597 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21042 0039d316-1c4b-4281-b951-d872f2087c98 --- courgette/encoded_program.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'courgette/encoded_program.h') diff --git a/courgette/encoded_program.h b/courgette/encoded_program.h index df1119c..25bc075 100644 --- a/courgette/encoded_program.h +++ b/courgette/encoded_program.h @@ -54,7 +54,18 @@ class EncodedProgram { bool AssembleTo(SinkStream *buffer); private: - enum OP; // Binary assembly language operations. + // Binary assembly language operations. + enum OP { + ORIGIN, // ORIGIN - set address for subsequent assembly. + COPY, // COPY - copy bytes to output. + COPY1, // COPY1 - same as COPY 1 . + REL32, // REL32 - emit rel32 encoded reference to address at + // address table offset + ABS32, // ABS32 - emit abs32 encoded reference to address at + // address table offset + MAKE_BASE_RELOCATION_TABLE, // Emit base relocation table blocks. + OP_LAST + }; void DebuggingSummary(); void GenerateBaseRelocations(SinkStream *buffer); @@ -80,4 +91,4 @@ class EncodedProgram { }; } // namespace courgette -#endif // COURGETTE_ENCODED_FORMAT_H_ +#endif // COURGETTE_ENCODED_PROGRAM_H_ -- cgit v1.1