]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2005-09-08 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 8 Sep 2005 14:24:22 +0000 (14:24 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 8 Sep 2005 14:24:22 +0000 (14:24 +0000)
PR ld/1263
* elflink.c (elf_link_add_object_symbols): Abort for
--just-symbols on DSO.

bfd/ChangeLog
bfd/elflink.c

index 1c781488c741657f66bb58ee8f6d8d242a3155cd..ff4cec06c3cdd9a3bf82ff8eec784925936529d9 100644 (file)
@@ -1,3 +1,9 @@
+2005-09-08  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/1263
+       * elflink.c (elf_link_add_object_symbols): Abort for
+       --just-symbols on DSO.
+
 2005-09-08  Paul Brook  <paul@codesourcery.com>
 
        * reloc.c: Rename BFD_RELOC_ARM_SMI to BFD_RELOC_ARM_SMC.
index b74851698c7ac55460c33766240d36ebf3034629..45ff665cd3c9aad4c3ccb47d7092dfc2f59b2ad3 100644 (file)
@@ -3291,11 +3291,10 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info)
       int ret;
 
       /* ld --just-symbols and dynamic objects don't mix very well.
-        Test for --just-symbols by looking at info set up by
-        _bfd_elf_link_just_syms.  */
+        ld shouldn't allow it.  */
       if ((s = abfd->sections) != NULL
          && s->sec_info_type == ELF_INFO_TYPE_JUST_SYMS)
-       goto error_return;
+       abort ();
 
       /* If this dynamic lib was specified on the command line with
         --as-needed in effect, then we don't want to add a DT_NEEDED