PR binutils/13897
authorAlan Modra <amodra@gmail.com>
Sun, 3 Jun 2012 04:08:07 +0000 (04:08 +0000)
committerAlan Modra <amodra@gmail.com>
Sun, 3 Jun 2012 04:08:07 +0000 (04:08 +0000)
commitaef36ac1fc7ce4c701b9a155092d1c00e9e3d1aa
treebcd6e8f067200bf65923b34a9ed5d90e95974f4d
parent94bf648691a13b84074f5aade0c0420fa226a1b0
PR binutils/13897
* elf.c (elf_find_function): Cache last function sym info.
(_bfd_elf_maybe_function_sym): Return function size, pass in
section of interest.
* elf-bfd.h (struct elf_backend_data <maybe_function_sym>): Likewise.
(_bfd_elf_maybe_function_sym): Likewise.
* elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
(opd_entry_value): Add in_code_sec param.  Revert caching code.
Return -1 if in_code_sec and function found in wrong section.
Update all calls.
bfd/ChangeLog
bfd/elf-bfd.h
bfd/elf.c
bfd/elf64-ppc.c