PR binutils/3874
commitaf7cac5f279d6cb96c0ba02bf49e7393519acf47
authorNick Clifton <nickc@redhat.com>
Thu, 25 Jan 2007 09:32:41 +0000 (25 09:32 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 25 Jan 2007 09:32:41 +0000 (25 09:32 +0000)
tree9b26c34cb161bb94e320d72a909d12c96b9d73bb
parentdcd1e79ddcc4b4da032189057095c93aba5304d7
PR binutils/3874
* elf32-avr.c (avr_link_hash_table): Check to make sure that the hash table was created by elf32_avr_link_hash_table_create before using it.
  (elf32_avr_link_hash_newfunc): New function.  Just pass the call through to _bfd_elf_link_hash_newfunc.
  (elf32_avr_link_hash_table_create): Use elf32_avr_link_hash_newfunc instead of _bfd_elf_link_hash_newfunc.
  (elf32_avr_relocate_section): Check for the hash table pointer being NULL.
  (elf32_avr_relax_section, avr_build_one_stub, elf32_avr_setup_params, get_local_syms, elf32_avr_size_stubs, elf32_avr_build_stubs): Likewise.
bfd/ChangeLog
bfd/elf32-avr.c