summaryrefslogtreecommitdiffstats
path: root/bfd/coff-i860.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/coff-i860.c')
-rw-r--r--bfd/coff-i860.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/bfd/coff-i860.c b/bfd/coff-i860.c
index e18e30ba8a..e7cbf8a96c 100644
--- a/bfd/coff-i860.c
+++ b/bfd/coff-i860.c
@@ -463,31 +463,7 @@ static reloc_howto_type howto_table[] =
FIXME: This macro refers to symbols and asect; these are from the
calling function, not the macro arguments. */
-/* FIXME: This was copied from the i386 version originally but
- appears to be wrong for i860. For now we'll do nothing. */
-#if 0
-#define CALC_ADDEND(abfd, ptr, reloc, cache_ptr) \
- { \
- coff_symbol_type *coffsym = (coff_symbol_type *) NULL; \
- if (ptr && bfd_asymbol_bfd (ptr) != abfd) \
- coffsym = (obj_symbols (abfd) \
- + (cache_ptr->sym_ptr_ptr - symbols)); \
- else if (ptr) \
- coffsym = coff_symbol_from (abfd, ptr); \
- if (coffsym != (coff_symbol_type *) NULL \
- && coffsym->native->u.syment.n_scnum == 0) \
- cache_ptr->addend = - coffsym->native->u.syment.n_value; \
- else if (ptr && bfd_asymbol_bfd (ptr) == abfd \
- && ptr->section != (asection *) NULL) \
- cache_ptr->addend = - (ptr->section->vma + ptr->value); \
- else \
- cache_ptr->addend = 0; \
- if (ptr && howto_table[reloc.r_type].pc_relative) \
- cache_ptr->addend += asect->vma; \
- }
-#else
#define CALC_ADDEND(abfd, ptr, reloc, cache_ptr)
-#endif
/* We use the special COFF backend linker. */
#define coff_relocate_section _bfd_coff_generic_relocate_section
OpenPOWER on IntegriCloud