* elf64-ppc.c (toc_adjusting_stub_needed): Exit early if section

size is zero.
This commit is contained in:
Alan Modra 2003-11-18 04:14:15 +00:00
parent 3441dc731b
commit 082c50f897
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-11-18 Alan Modra <amodra@bigpond.net.au>
* elf64-ppc.c (toc_adjusting_stub_needed): Exit early if section
size is zero.
2003-11-17 Daniel Jacobowitz <drow@mvista.com>
* elf.c (_bfd_elf_link_hash_copy_indirect): Copy

View File

@ -6566,6 +6566,9 @@ toc_adjusting_stub_needed (struct bfd_link_info *info, asection *isec)
if ((isec->flags & SEC_LINKER_CREATED) != 0)
return 0;
if (isec->_raw_size == 0)
return 0;
/* Hack for linux kernel. .fixup contains branches, but only back to
the function that hit an exception. */
branch_ok = strcmp (isec->name, ".fixup") == 0;