diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2020-11-20 16:08:25 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@protonmail.com> | 2020-11-22 11:11:32 +0100 |
commit | a0a771843fc39c3cc2574a51f009c3391e1808e9 (patch) | |
tree | 3921af7e089724fd64b769391452d96aaec6a508 /contrib/devtools | |
parent | 634f6ec4eb9997d7bd0f8209fad49a4171d42384 (diff) |
contrib: Changes to checks for PowerPC64
Changes from #14066.
Diffstat (limited to 'contrib/devtools')
-rwxr-xr-x | contrib/devtools/security-check.py | 3 | ||||
-rwxr-xr-x | contrib/devtools/symbol-check.py | 3 |
2 files changed, 6 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 = {} diff --git a/contrib/devtools/symbol-check.py b/contrib/devtools/symbol-check.py index 6ca5076d6f..91c7e32578 100755 --- a/contrib/devtools/symbol-check.py +++ b/contrib/devtools/symbol-check.py @@ -68,6 +68,8 @@ ELF_ALLOWED_LIBRARIES = { 'ld-linux.so.2', # 32-bit dynamic linker 'ld-linux-aarch64.so.1', # 64-bit ARM dynamic linker 'ld-linux-armhf.so.3', # 32-bit ARM dynamic linker +'ld64.so.1', # POWER64 ABIv1 dynamic linker +'ld64.so.2', # POWER64 ABIv2 dynamic linker 'ld-linux-riscv64-lp64d.so.1', # 64-bit RISC-V dynamic linker # bitcoin-qt only 'libxcb.so.1', # part of X11 @@ -80,6 +82,7 @@ pixie.EM_386: (2,1), pixie.EM_X86_64: (2,2,5), pixie.EM_ARM: (2,4), pixie.EM_AARCH64:(2,17), +pixie.EM_PPC64: (2,17), pixie.EM_RISCV: (2,27) } |