* elf64-ppc.c (toc_adjusting_stub_needed): Exit early if section
authorAlan Modra <amodra@gmail.com>
Tue, 18 Nov 2003 04:14:15 +0000 (04:14 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 18 Nov 2003 04:14:15 +0000 (04:14 +0000)
size is zero.

bfd/ChangeLog
bfd/elf64-ppc.c

index d3e8bfb7a071227d9d22df63f7f9058be75557e6..9ff2c3b87066f1529a52edf65ae4538f695504c0 100644 (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
index 4554c2c607415e52d88e6b77e1089756529d7fea..96e1d230fc9584302b97255dbddb1f82700ffd4d 100644 (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;
This page took 0.035241 seconds and 4 git commands to generate.