Fixed exported names, removed a bad define
[deliverable/binutils-gdb.git] / bfd / elflink.h
index a1b4b149cc7b3e91e06e324af02dfce9b18377c5..c656ac12303585efa36ab13fbfdef92b18432abc 100644 (file)
@@ -868,8 +868,7 @@ elf_link_add_object_symbols (abfd, info)
 
          h = *hpp;
          if (h != NULL && h != hlook
-             && (h->root.type == bfd_link_hash_defined
-                 || h->root.type == bfd_link_hash_defweak)
+             && h->root.type == bfd_link_hash_defined
              && h->root.u.def.section == slook
              && h->root.u.def.value == vlook)
            {
@@ -3172,8 +3171,8 @@ elf_create_pointer_linker_section (abfd, info, lsect, h, rel)
            return false;
        }
 
-      BFD_ASSERT (lsect->rel_section != NULL);
-      lsect->rel_section->_raw_size += sizeof (Elf_External_Rela);
+      if (lsect->rel_section)
+       lsect->rel_section->_raw_size += sizeof (Elf_External_Rela);
     }
 
   else  /* Allocation of a pointer to a local symbol */
@@ -3208,7 +3207,7 @@ elf_create_pointer_linker_section (abfd, info, lsect, h, rel)
       if (info->shared)
        {
          /* If we are generating a shared object, we need to
-            output a R_PPC_RELATIVE reloc so that the
+            output a R_<xxx>_RELATIVE reloc so that the
             dynamic linker can adjust this GOT entry.  */
          BFD_ASSERT (lsect->rel_section != NULL);
          lsect->rel_section->_raw_size += sizeof (Elf_External_Rela);
@@ -3276,10 +3275,6 @@ elf_finish_pointer_linker_section (output_bfd, input_bfd, info, lsect, h, reloca
 
   BFD_ASSERT (lsect != NULL);
 
-  if (!lsect->section->contents)
-    lsect->section->contents = (unsigned char *) bfd_zalloc (output_bfd,
-                                                            lsect->section->_raw_size);
-
   if (h != NULL)               /* global symbol */
     {
       linker_section_ptr = _bfd_elf_find_pointer_linker_section (h->linker_section_pointer,
This page took 0.023352 seconds and 4 git commands to generate.