contrib: Changes to checks for PowerPC64

Changes from #14066.
This commit is contained in:
Luke Dashjr
2020-11-20 16:08:25 +01:00
committed by Wladimir J. van der Laan
parent 634f6ec4eb
commit a0a771843f
2 changed files with 6 additions and 0 deletions

View File

@ -124,6 +124,9 @@ def check_ELF_separate_code(executable):
b'.data': R | W,
b'.bss': R | W,
}
if elf.hdr.e_machine == pixie.EM_PPC64:
# .plt is RW on ppc64 even with separate-code
EXPECTED_FLAGS[b'.plt'] = R | W
# For all LOAD program headers get mapping to the list of sections,
# and for each section, remember the flags of the associated program header.
flags_per_section = {}