aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorPeter Bergner <bergner@linux.ibm.com>2021-01-08 16:07:12 -0600
committerAlan Modra <amodra@gmail.com>2021-01-09 15:16:13 +1030
commitaae7fcb8d755a2eb3f32a3f945a4e8f30cf5c5e2 (patch)
tree42165a09c958a6884c90a9126b87c3c9b3b4358a /bfd
parent6430704567c6c3f838ad7d01d5dfcf3fcb8d6b24 (diff)
downloadgdb-aae7fcb8d755a2eb3f32a3f945a4e8f30cf5c5e2.zip
gdb-aae7fcb8d755a2eb3f32a3f945a4e8f30cf5c5e2.tar.gz
gdb-aae7fcb8d755a2eb3f32a3f945a4e8f30cf5c5e2.tar.bz2
POWER10: Add Return-Oriented Programming instructions
POWER10 adds some return-oriented programming (ROP) instructions and this patch adds support for them. You will notice that they are enabled for POWER8 and later, not just POWER10 and later. This is on purpose. This allows the instructions to be added to POWER8 binaries that can be run on POWER8, POWER9 and POWER10 cpus. On POWER8 and POWER9, these instructions just act as nop's. opcodes/ * ppc-opc.c (insert_dw, (extract_dw): New functions. (DW, (XRC_MASK): Define. (powerpc_opcodes) <hashchk, hashchkp, hashst, haststp>: New mnemonics. gas/ * testsuite/gas/ppc/rop-checks.d, * testsuite/gas/ppc/rop-checks.l, * testsuite/gas/ppc/rop-checks.s, * testsuite/gas/ppc/rop.d, * testsuite/gas/ppc/rop.s: New tests. * testsuite/gas/ppc/ppc.exp: Run them.
Diffstat (limited to 'bfd')
0 files changed, 0 insertions, 0 deletions