From b75d42bce5609effad86fb8b5d902f4c337e0cf9 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 16 Jan 2014 11:50:28 +1030 Subject: 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 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bfd/ChangeLog') diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0bf7665..6e1e334 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2014-01-16 Alan Modra + + * 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. + 2014-01-15 H.J. Lu * elf32-i386.c (elf_i386_allocate_dynrelocs): Revert the last -- cgit v1.1