ElfLinker::init() allows symbols and relocations (but not Sections) to be empty

modified:   linker.cpp
	modified:   linker.h
This commit is contained in:
John Reiser
2022-05-04 13:29:36 -07:00
committed by Markus F.X.J. Oberhumer
parent 7a232cb330
commit 2721ef0636
2 changed files with 22 additions and 17 deletions
+4 -4
View File
@@ -64,9 +64,9 @@ protected:
bool reloc_done = false;
protected:
void preprocessSections(char *start, char *end);
void preprocessSymbols(char *start, char *end);
void preprocessRelocations(char *start, char *end);
void preprocessSections(char *start, char const *end);
void preprocessSymbols(char *start, char const *end);
void preprocessRelocations(char *start, char const *end);
Section *findSection(const char *name, bool fatal = true) const;
Symbol *findSymbol(const char *name, bool fatal = true) const;
@@ -78,7 +78,7 @@ public:
ElfLinker();
virtual ~ElfLinker();
virtual void init(const void *pdata, int plen);
virtual void init(const void *pdata, int plen, unsigned pxtra = 0);
// virtual void setLoaderAlignOffset(int phase);
virtual int addLoader(const char *sname);
void addLoader(const char *s, va_list ap);