diff options
author | Alan Modra <amodra@gmail.com> | 2014-01-16 11:50:28 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2014-01-16 11:56:50 +1030 |
commit | b75d42bce5609effad86fb8b5d902f4c337e0cf9 (patch) | |
tree | a3ab5df94d585120feaccb242f426507e806d98c /ld/ldlang.h | |
parent | ab7f45ba10d0a1a636a5ce7b4784a1d6ce3e94a3 (diff) | |
download | gdb-b75d42bce5609effad86fb8b5d902f4c337e0cf9.zip gdb-b75d42bce5609effad86fb8b5d902f4c337e0cf9.tar.gz gdb-b75d42bce5609effad86fb8b5d902f4c337e0cf9.tar.bz2 |
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.
Diffstat (limited to 'ld/ldlang.h')
0 files changed, 0 insertions, 0 deletions