ElfLinkerX86 introduced.

Simple alignment handling added to ElfLinker.
dos/exe device drivers can be compressed again.
This commit is contained in:
László Molnár
2006-06-29 18:21:01 +02:00
parent 3872393b29
commit b33718180c
6 changed files with 286 additions and 233 deletions
+18
View File
@@ -153,6 +153,7 @@ class ElfLinker : public Linker
{
typedef Linker super;
protected:
struct Section
{
const char *name;
@@ -228,6 +229,23 @@ protected:
virtual unsigned get32(const void *) const { return 0; }
virtual void set32(void *, unsigned) const {}
//
void alignWithByte(unsigned modulus, unsigned remainder, unsigned char b);
virtual void align(unsigned modulus, unsigned remainder);
virtual void relocate1(Relocation *, unsigned char *location,
unsigned value, const char *type);
};
class ElfLinkerX86 : public ElfLinker
{
typedef ElfLinker super;
protected:
virtual void align(unsigned modulus, unsigned remainder);
virtual void relocate1(Relocation *, unsigned char *location,
unsigned value, const char *type);
};