diff options
author | Alan Modra <amodra@gmail.com> | 2007-12-05 03:29:20 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2007-12-05 03:29:20 +0000 |
commit | d688b66ee1470fe1c6a1eec2869f6f324ecd1ac3 (patch) | |
tree | 432c7ba5534119ead71412dba8db2ea6d0f1c569 /bfd | |
parent | ad25e7d5fcf3fb0091d9b7679571929ddb483ada (diff) | |
download | gdb-d688b66ee1470fe1c6a1eec2869f6f324ecd1ac3.zip gdb-d688b66ee1470fe1c6a1eec2869f6f324ecd1ac3.tar.gz gdb-d688b66ee1470fe1c6a1eec2869f6f324ecd1ac3.tar.bz2 |
* elf32-spu.c (spu_elf_size_stubs): Do consider branches to
non-function symbols for overlay stubs.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf32-spu.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c0f367c..fbe5928 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2007-12-05 Alan Modra <amodra@bigpond.net.au> + + * elf32-spu.c (spu_elf_size_stubs): Do consider branches to + non-function symbols for overlay stubs. + 2007-12-04 Bob Wilson <bob.wilson@acm.org> * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Create DT_PLTGOT diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index 7da9cb6..62a922a 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; } |