mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 628618 part 7 - Use a whitelist of ELF sections that can be moved. r=tglek,a=sdwilsh
This commit is contained in:
parent
b42bea9dc1
commit
f1376f347d
@ -328,10 +328,19 @@ public:
|
||||
ElfSection *getPrevious() { return previous; }
|
||||
|
||||
virtual bool isRelocatable() {
|
||||
return ((getType() != SHT_NULL) &&
|
||||
(getType() != SHT_NOBITS) &&
|
||||
(getType() != SHT_PROGBITS) &&
|
||||
(getFlags() & SHF_ALLOC));
|
||||
return ((getType() == SHT_SYMTAB) ||
|
||||
(getType() == SHT_STRTAB) ||
|
||||
(getType() == SHT_RELA) ||
|
||||
(getType() == SHT_HASH) ||
|
||||
(getType() == SHT_DYNAMIC) ||
|
||||
(getType() == SHT_NOTE) ||
|
||||
(getType() == SHT_REL) ||
|
||||
(getType() == SHT_DYNSYM) ||
|
||||
(getType() == SHT_GNU_HASH) ||
|
||||
(getType() == SHT_GNU_verdef) ||
|
||||
(getType() == SHT_GNU_verneed) ||
|
||||
(getType() == SHT_GNU_versym)) &&
|
||||
(getFlags() & SHF_ALLOC);
|
||||
}
|
||||
|
||||
void insertAfter(ElfSection *section, bool dirty = true) {
|
||||
|
Loading…
Reference in New Issue
Block a user