diff options
author | Nick Clifton <nickc@redhat.com> | 2001-08-24 16:36:04 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-08-24 16:36:04 +0000 |
commit | 8ea2e4bd701102e0d30274c3c37f1ff60ccb3f1d (patch) | |
tree | c90e9fae26746838533c88cacda0460632ea0959 /bfd/elfxx-target.h | |
parent | 1ae8b3d2a04d1064a403ce6adf997831e1a55300 (diff) | |
download | gdb-8ea2e4bd701102e0d30274c3c37f1ff60ccb3f1d.zip gdb-8ea2e4bd701102e0d30274c3c37f1ff60ccb3f1d.tar.gz gdb-8ea2e4bd701102e0d30274c3c37f1ff60ccb3f1d.tar.bz2 |
Apply H.J.'s patch to revert change to elfxx-target.h
Apply my patch to allow SREC as output format.
Diffstat (limited to 'bfd/elfxx-target.h')
-rw-r--r-- | bfd/elfxx-target.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h index a4c5e1d..2c7f095 100644 --- a/bfd/elfxx-target.h +++ b/bfd/elfxx-target.h @@ -162,11 +162,20 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ _bfd_elf_canonicalize_dynamic_reloc #endif +#ifdef elf_backend_relocate_section #ifndef bfd_elfNN_bfd_link_hash_table_create #define bfd_elfNN_bfd_link_hash_table_create _bfd_elf_link_hash_table_create #endif -#ifndef elf_backend_relocate_section -/* If no backend relocate_section routine, use the generic linker. */ +#else /* ! defined (elf_backend_relocate_section) */ +/* If no backend relocate_section routine, use the generic linker. + Note - this will prevent the port from being able to use some of + the other features of the ELF linker, because the generic hash structure + does not have the fields needed by the ELF linker. In particular it + means that linking directly to S-records will not work. */ +#ifndef bfd_elfNN_bfd_link_hash_table_create +#define bfd_elfNN_bfd_link_hash_table_create \ + _bfd_generic_link_hash_table_create +#endif #ifndef bfd_elfNN_bfd_link_add_symbols #define bfd_elfNN_bfd_link_add_symbols _bfd_generic_link_add_symbols #endif |