diff options
author | Andre Vieira <andre.simoesdiasvieira@arm.com> | 2019-04-15 11:06:30 +0100 |
---|---|---|
committer | Andre Vieira <andre.simoesdiasvieira@arm.com> | 2019-04-15 12:29:35 +0100 |
commit | e12437dc862690eeaa4a487fee35a237703d2b29 (patch) | |
tree | 308949d90e4b742fd3363a90988fc365881914a5 /bfd/reloc.c | |
parent | e0991585ade56ff86a382978bb3b0268d6e1f31c (diff) | |
download | gdb-e12437dc862690eeaa4a487fee35a237703d2b29.zip gdb-e12437dc862690eeaa4a487fee35a237703d2b29.tar.gz gdb-e12437dc862690eeaa4a487fee35a237703d2b29.tar.bz2 |
[binutils, ARM, 3/16] BF insns infrastructure with new bfd_reloc_code_real for fallback branch
This patch is part of a series of patches to add support for Armv8.1-M Mainline
instructions to binutils.
This adds infrastructure for the Branch Future instructions (BF, BFX, BFL, BFLX,
BFCSEL). These are the first instructions in ARM that have more than one
relocations in them.
This is the first infrastructure patch that adds a new bfd_reloc_code_real enum
for the fallback branch offset.
This is common for all such instructions and needs to be resolvable by the
assembler.
ChangeLog entries are as follows :
*** bfd/ChangeLog ***
2019-04-15 Sudakshina Das <sudi.das@arm.com>
* reloc.c (BFD_RELOC_THUMB_PCREL_BRANCH5): New enum.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
*** gas/ChangeLog ***
2019-04-15 Sudakshina Das <sudi.das@arm.com>
* config/tc-arm.c (md_pcrel_from_section): New switch case
for BFD_RELOC_THUMB_PCREL_BRANCH5.
(v8_1_branch_value_check): New function to check branch
offsets.
(md_appdy_fix): New switch case for
BFD_RELOC_THUMB_PCREL_BRANCH5.
(tc_gen_reloc): Likewise.
*** opcodes/ChangeLog ***
2019-04-15 Sudakshina Das <sudi.das@arm.com>
* arm-dis.c (print_insn_thumb32): Updated to accept new %G pattern.
Diffstat (limited to 'bfd/reloc.c')
-rw-r--r-- | bfd/reloc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/reloc.c b/bfd/reloc.c index e6446a7..a071dc7 100644 --- a/bfd/reloc.c +++ b/bfd/reloc.c @@ -3015,6 +3015,11 @@ ENUMDOC ARM 26-bit pc-relative branch for B or conditional BL instruction. ENUM + BFD_RELOC_THUMB_PCREL_BRANCH5 +ENUMDOC + ARM 5-bit pc-relative branch for Branch Future instructions. + +ENUM BFD_RELOC_THUMB_PCREL_BRANCH7 ENUMX BFD_RELOC_THUMB_PCREL_BRANCH9 |