mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
Remove misleading "const" from Linker::preprocessXX().
This commit is contained in:
parent
edf384d2ee
commit
732d6710d3
|
@ -189,7 +189,7 @@ void ElfLinker::init(const void *pdata_v, int plen)
|
|||
addLoader("*UND*");
|
||||
}
|
||||
|
||||
void ElfLinker::preprocessSections(char *start, const char *end)
|
||||
void ElfLinker::preprocessSections(char *start, char *end)
|
||||
{
|
||||
nsections = 0;
|
||||
while (start < end)
|
||||
|
@ -215,7 +215,7 @@ void ElfLinker::preprocessSections(char *start, const char *end)
|
|||
addSection("*UND*", NULL, 0, 0);
|
||||
}
|
||||
|
||||
void ElfLinker::preprocessSymbols(char *start, const char *end)
|
||||
void ElfLinker::preprocessSymbols(char *start, char *end)
|
||||
{
|
||||
nsymbols = 0;
|
||||
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];
|
||||
Section *section = NULL;
|
||||
|
|
|
@ -66,9 +66,9 @@ protected:
|
|||
bool reloc_done;
|
||||
|
||||
protected:
|
||||
void preprocessSections(char *start, const char *end);
|
||||
void preprocessSymbols(char *start, const char *end);
|
||||
void preprocessRelocations(char *start, const char *end);
|
||||
void preprocessSections(char *start, char *end);
|
||||
void preprocessSymbols(char *start, char *end);
|
||||
void preprocessRelocations(char *start, char *end);
|
||||
Section *findSection(const char *name, bool fatal=true) const;
|
||||
Symbol *findSymbol(const char *name, bool fatal=true) const;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user