ElfLinker: rela support added

This commit is contained in:
László Molnár
2006-07-07 08:51:48 +02:00
parent b7bbd81dda
commit d35211328e
2 changed files with 14 additions and 4 deletions
+4 -2
View File
@@ -189,10 +189,12 @@ protected:
unsigned offset;
const char *type;
Symbol *value;
unsigned add; // used in .rela relocations
Relocation(){}
Relocation(Section *s, unsigned o, const char *t, Symbol *v) :
section(s), offset(o), type(t), value(v)
Relocation(Section *s, unsigned o, const char *t,
Symbol *v, unsigned a) :
section(s), offset(o), type(t), value(v), add(a)
{}
};