aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-11-18 04:14:15 +0000
committerAlan Modra <amodra@gmail.com>2003-11-18 04:14:15 +0000
commit082c50f897ccb4a3554c0c3965116420618bcfda (patch)
tree94909855f1d229042f0c846ac5c9d2914318f7d8 /bfd
parent3441dc731bc3cf3f65482872360a7d8e8b92ec75 (diff)
downloadgdb-082c50f897ccb4a3554c0c3965116420618bcfda.zip
gdb-082c50f897ccb4a3554c0c3965116420618bcfda.tar.gz
gdb-082c50f897ccb4a3554c0c3965116420618bcfda.tar.bz2
* elf64-ppc.c (toc_adjusting_stub_needed): Exit early if section
size is zero.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf64-ppc.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index d3e8bfb..9ff2c3b 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 4554c2c..96e1d23 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -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;