diff options
author | Nick Clifton <nickc@redhat.com> | 2001-04-27 17:12:17 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-04-27 17:12:17 +0000 |
commit | ab83c0181314b2ea00399b501968fe95e5a5d338 (patch) | |
tree | 6ffac345382fc093587634c42f901e32a43f4973 /bfd/coff-arm.c | |
parent | 906cde8683817de9ddeebe574764ad8263b8ad1e (diff) | |
download | gdb-ab83c0181314b2ea00399b501968fe95e5a5d338.tar.gz |
Add support for arm-vxworks target
Diffstat (limited to 'bfd/coff-arm.c')
-rw-r--r-- | bfd/coff-arm.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/bfd/coff-arm.c b/bfd/coff-arm.c index ae7ee75a56d..8bb4e6c4940 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 |