aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-arm.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-04-27 17:12:18 +0000
committerNick Clifton <nickc@redhat.com>2001-04-27 17:12:18 +0000
commit87748b32271dca951c949543fc14cb1ef2b5c992 (patch)
tree47bd23066af753d8b9e6e46d28f2eb9917386f7a /bfd/coff-arm.c
parentcc3f9cbbf767f6d2e07cf46508fc510f07042bc9 (diff)
downloadgdb-87748b32271dca951c949543fc14cb1ef2b5c992.zip
gdb-87748b32271dca951c949543fc14cb1ef2b5c992.tar.gz
gdb-87748b32271dca951c949543fc14cb1ef2b5c992.tar.bz2
Add support for arm-vxworks target
Diffstat (limited to 'bfd/coff-arm.c')
-rw-r--r--bfd/coff-arm.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/bfd/coff-arm.c b/bfd/coff-arm.c
index ae7ee75..8bb4e6c 100644
--- a/bfd/coff-arm.c
+++ b/bfd/coff-arm.c
@@ -1244,12 +1244,18 @@ coff_arm_relocate_section (output_bfd, info, input_bfd, input_section,
{
if (info->relocateable)
continue;
-#if 0 /* We must not ignore the symbol value. If the symbol is
- within the same section, the relocation should have already
- been fixed, but if it is not, we'll be handed a reloc into
- the beginning of the symbol's section, so we must not cancel
- out the symbol's value, otherwise we'll be adding it in
- twice. */
+ /* FIXME - it is not clear which targets need this next test
+ and which do not. It is known that it is needed for the
+ VXworks target (hence the #ifdef), but it is also known
+ that it was supressed for other (arm) targets. This ought
+ to be sorted out one day. */
+#ifdef VXWORKS
+ /* We must not ignore the symbol value. If the symbol is
+ within the same section, the relocation should have already
+ been fixed, but if it is not, we'll be handed a reloc into
+ the beginning of the symbol's section, so we must not cancel
+ out the symbol's value, otherwise we'll be adding it in
+ twice. */
if (sym != NULL && sym->n_scnum != 0)
addend += sym->n_value;
#endif