diff options
author | Paul Brook <paul@codesourcery.com> | 2006-07-18 16:44:47 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2006-07-18 16:44:47 +0000 |
commit | 1f86a69ba44289a3bbeafbe0cd93d5b27d7ea93c (patch) | |
tree | 3ab6abf5cab91915683e01bac68af5b0a45d33fb /bfd | |
parent | 344a4d54f0d6be3c0851c083f694623f272ac78b (diff) | |
download | binutils-redhat-1f86a69ba44289a3bbeafbe0cd93d5b27d7ea93c.tar.gz |
2006-07-18 Paul Brook <paul@codesourcery.com>
bfd/
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
* reloc.c: Add BFD_RELOC_ARM_T32_ADD_IMM.
gas/
* tc-arm.c (do_t_add_sub): Use addw/subw when source is PC.
(md_convert_frag): Use correct reloc for add_pc. Use
BFD_RELOC_ARM_T32_ADD_IMM for normal add/sum.
(md_apply_fix): Handle BFD_RELOC_ARM_T32_ADD_IMM.
(arm_force_relocation): Handle BFD_RELOC_ARM_T32_ADD_IMM.
gas/testsuite/
* gas/arm/thumb2_add.d: New test.
* gas/arm/thumb2_add.s: New test.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/bfd-in2.h | 1 | ||||
-rw-r--r-- | bfd/libbfd.h | 1 | ||||
-rw-r--r-- | bfd/reloc.c | 2 |
4 files changed, 10 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 6c4773ed28..4ce004e63e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2006-07-18 Paul Brook <paul@codesourcery.com> + + * bfd-in2.h: Regenerate. + * libbfd.h: Regenerate. + * reloc.c: Add BFD_RELOC_ARM_T32_ADD_IMM. + 2006-07-18 Nick Clifton <nickc@redhat.com> * elfxx-mips.c (_bfd_mips_elf_common_definition): New function. diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index df3bae8945..381ae55640 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -2966,6 +2966,7 @@ pc-relative or some form of GOT-indirect relocation. */ BFD_RELOC_ARM_IMMEDIATE, BFD_RELOC_ARM_ADRL_IMMEDIATE, BFD_RELOC_ARM_T32_IMMEDIATE, + BFD_RELOC_ARM_T32_ADD_IMM, BFD_RELOC_ARM_T32_IMM12, BFD_RELOC_ARM_T32_ADD_PC12, BFD_RELOC_ARM_SHIFT_IMM, diff --git a/bfd/libbfd.h b/bfd/libbfd.h index 0f41f5f2d1..0aa704604f 100644 --- a/bfd/libbfd.h +++ b/bfd/libbfd.h @@ -1263,6 +1263,7 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@", "BFD_RELOC_ARM_IMMEDIATE", "BFD_RELOC_ARM_ADRL_IMMEDIATE", "BFD_RELOC_ARM_T32_IMMEDIATE", + "BFD_RELOC_ARM_T32_ADD_IMM", "BFD_RELOC_ARM_T32_IMM12", "BFD_RELOC_ARM_T32_ADD_PC12", "BFD_RELOC_ARM_SHIFT_IMM", diff --git a/bfd/reloc.c b/bfd/reloc.c index 414a41cef5..60ebf36f03 100644 --- a/bfd/reloc.c +++ b/bfd/reloc.c @@ -2822,6 +2822,8 @@ ENUMX ENUMX BFD_RELOC_ARM_T32_IMMEDIATE ENUMX + BFD_RELOC_ARM_T32_ADD_IMM +ENUMX BFD_RELOC_ARM_T32_IMM12 ENUMX BFD_RELOC_ARM_T32_ADD_PC12 |