From: Alan Modra Date: Wed, 5 Dec 2007 03:29:20 +0000 (+0000) Subject: * elf32-spu.c (spu_elf_size_stubs): Do consider branches to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d688b66ee1470fe1c6a1eec2869f6f324ecd1ac3;p=binutils-gdb.git * elf32-spu.c (spu_elf_size_stubs): Do consider branches to non-function symbols for overlay stubs. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c0f367ca7c3..fbe5928c067 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2007-12-05 Alan Modra + + * elf32-spu.c (spu_elf_size_stubs): Do consider branches to + non-function symbols for overlay stubs. + 2007-12-04 Bob Wilson * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Create DT_PLTGOT diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index 7da9cb69606..62a922a3e49 100644 --- a/bfd/elf32-spu.c +++ b/bfd/elf32-spu.c @@ -996,6 +996,7 @@ spu_elf_size_stubs (bfd *output_bfd, sym, sym_sec); } + if (sym_type != STT_FUNC) { /* It's common for people to write assembly and forget @@ -1008,7 +1009,7 @@ spu_elf_size_stubs (bfd *output_bfd, (*_bfd_error_handler) (_("warning: call to non-function" " symbol %s defined in %B"), sym_sec->owner, sym_name); - else + else if (insn_type == non_branch) continue; }