зеркало из https://github.com/mozilla/gecko-dev.git
Backout 61038a15b7b7 (bug 771569) for elfhack errors
This commit is contained in:
Родитель
1edc7b1c90
Коммит
5f2ce2ac09
|
@ -442,7 +442,7 @@ int do_relocation_section(Elf *elf, unsigned int rel_type, unsigned int rel_type
|
|||
relhack_entry.r_offset = relhack_entry.r_info = 0;
|
||||
relhack->push_back(relhack_entry);
|
||||
|
||||
relhackcode->insertBefore(section);
|
||||
relhackcode->insertAfter(section);
|
||||
relhack->insertAfter(relhackcode);
|
||||
|
||||
unsigned int old_end = section->getOffset() + section->getSize();
|
||||
|
|
|
@ -360,23 +360,6 @@ public:
|
|||
markDirty();
|
||||
}
|
||||
|
||||
void insertBefore(ElfSection *section, bool dirty = true) {
|
||||
if (previous != NULL)
|
||||
previous->next = next;
|
||||
if (next != NULL)
|
||||
next->previous = previous;
|
||||
next = section;
|
||||
if (section != NULL) {
|
||||
previous = section->previous;
|
||||
section->previous = this;
|
||||
} else
|
||||
previous = NULL;
|
||||
if (previous != NULL)
|
||||
previous->next = this;
|
||||
if (dirty)
|
||||
markDirty();
|
||||
}
|
||||
|
||||
void markDirty() {
|
||||
if (link != NULL)
|
||||
shdr.sh_link = -1;
|
||||
|
|
Загрузка…
Ссылка в новой задаче