aboutsummaryrefslogtreecommitdiff
path: root/contrib/devtools/security-check.py
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2020-11-20 16:08:25 +0100
committerWladimir J. van der Laan <laanwj@protonmail.com>2020-11-22 11:11:32 +0100
commita0a771843fc39c3cc2574a51f009c3391e1808e9 (patch)
tree3921af7e089724fd64b769391452d96aaec6a508 /contrib/devtools/security-check.py
parent634f6ec4eb9997d7bd0f8209fad49a4171d42384 (diff)
contrib: Changes to checks for PowerPC64
Changes from #14066.
Diffstat (limited to 'contrib/devtools/security-check.py')
-rwxr-xr-xcontrib/devtools/security-check.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/devtools/security-check.py b/contrib/devtools/security-check.py
index a7eb7f429b..7b09c42fde 100755
--- a/contrib/devtools/security-check.py
+++ b/contrib/devtools/security-check.py
@@ -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 = {}