Remove misleading "const" from Linker::preprocessXX().
This commit is contained in:
+3
-3
@@ -189,7 +189,7 @@ void ElfLinker::init(const void *pdata_v, int plen)
|
|||||||
addLoader("*UND*");
|
addLoader("*UND*");
|
||||||
}
|
}
|
||||||
|
|
||||||
void ElfLinker::preprocessSections(char *start, const char *end)
|
void ElfLinker::preprocessSections(char *start, char *end)
|
||||||
{
|
{
|
||||||
nsections = 0;
|
nsections = 0;
|
||||||
while (start < end)
|
while (start < end)
|
||||||
@@ -215,7 +215,7 @@ void ElfLinker::preprocessSections(char *start, const char *end)
|
|||||||
addSection("*UND*", NULL, 0, 0);
|
addSection("*UND*", NULL, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ElfLinker::preprocessSymbols(char *start, const char *end)
|
void ElfLinker::preprocessSymbols(char *start, char *end)
|
||||||
{
|
{
|
||||||
nsymbols = 0;
|
nsymbols = 0;
|
||||||
while (start < end)
|
while (start < end)
|
||||||
@@ -250,7 +250,7 @@ void ElfLinker::preprocessSymbols(char *start, const char *end)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ElfLinker::preprocessRelocations(char *start, const char *end)
|
void ElfLinker::preprocessRelocations(char *start, char *end)
|
||||||
{
|
{
|
||||||
char sect[1024];
|
char sect[1024];
|
||||||
Section *section = NULL;
|
Section *section = NULL;
|
||||||
|
|||||||
+3
-3
@@ -66,9 +66,9 @@ protected:
|
|||||||
bool reloc_done;
|
bool reloc_done;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void preprocessSections(char *start, const char *end);
|
void preprocessSections(char *start, char *end);
|
||||||
void preprocessSymbols(char *start, const char *end);
|
void preprocessSymbols(char *start, char *end);
|
||||||
void preprocessRelocations(char *start, const char *end);
|
void preprocessRelocations(char *start, char *end);
|
||||||
Section *findSection(const char *name, bool fatal=true) const;
|
Section *findSection(const char *name, bool fatal=true) const;
|
||||||
Symbol *findSymbol(const char *name, bool fatal=true) const;
|
Symbol *findSymbol(const char *name, bool fatal=true) const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user