Backout 61038a15b7b7 (bug 771569) for elfhack errors

This commit is contained in:
Ed Morley 2012-07-09 15:14:18 +01:00
Родитель 1edc7b1c90
Коммит 5f2ce2ac09
2 изменённых файлов: 1 добавлений и 18 удалений

Просмотреть файл

@ -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;