aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-arm.c
diff options
context:
space:
mode:
authorCatherine Moore <clm@redhat.com>1999-05-05 18:56:25 +0000
committerCatherine Moore <clm@redhat.com>1999-05-05 18:56:25 +0000
commitb44267fd403c00de24c652c82f9b7dd948d88799 (patch)
tree2b06ea7b94a00c263fa8a4458293232cd8abd260 /bfd/coff-arm.c
parentb83266a0e1813b7f4891d5d6b0ed6b7302a3fe98 (diff)
downloadgdb-b44267fd403c00de24c652c82f9b7dd948d88799.zip
gdb-b44267fd403c00de24c652c82f9b7dd948d88799.tar.gz
gdb-b44267fd403c00de24c652c82f9b7dd948d88799.tar.bz2
* coff-arm.c (coff_arm_relocate_section): Add one to
address of ARM_RVA32 thumb functions.
Diffstat (limited to 'bfd/coff-arm.c')
-rw-r--r--bfd/coff-arm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/coff-arm.c b/bfd/coff-arm.c
index d478ce5..3205117 100644
--- a/bfd/coff-arm.c
+++ b/bfd/coff-arm.c
@@ -1537,7 +1537,7 @@ coff_arm_relocate_section (output_bfd, info, input_bfd, input_section,
Probably not, but it works, and if it works it don't need fixing! nickc@cygnus.com */
/* Only perform this fix during the final link, not a relocatable link. nickc@cygnus.com */
if (! info->relocateable
- && rel->r_type == ARM_32)
+ && (rel->r_type == ARM_32 || rel->r_type == ARM_RVA32))
{
/* Determine if we need to set the bottom bit of a relocated address
because the address is the address of a Thumb code symbol. */