Fix mips segfault on GOT access of absolute symbol
authorAlan Modra <amodra@gmail.com>
Thu, 16 Jan 2014 01:20:28 +0000 (11:50 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 16 Jan 2014 01:26:50 +0000 (11:56 +1030)
commitb75d42bce5609effad86fb8b5d902f4c337e0cf9
treea3ab5df94d585120feaccb242f426507e806d98c
parentab7f45ba10d0a1a636a5ce7b4784a1d6ce3e94a3
Fix mips segfault on GOT access of absolute symbol

When a symbol is absolute, this code in mips_elf_record_got_page_entry
      entry = bfd_zalloc (sec->owner, sizeof (*entry));
segfaults.  sec == bfd_abs_section_ptr and sec->owner == NULL.

* elfxx-mips.c (mips_elf_record_got_page_entry): Pass in a
mips_elf_traverse_got_arg* rather than mips_got_info*.
Adjust caller.  Alloc on output_bfd rather than symbol section
owner.
bfd/ChangeLog
bfd/elfxx-mips.c