* elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
authorHans-Peter Nilsson <hp@axis.com>
Tue, 19 Mar 2002 20:21:54 +0000 (20:21 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Tue, 19 Mar 2002 20:21:54 +0000 (20:21 +0000)
STT_NOTYPE symbols to STT_OBJECT.

bfd/ChangeLog
bfd/elflink.h

index 01a13ffe6379cd434f9244683fccf5520540ca9e..7570b23c4749d9fce34c0cebe7067e0587819567 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-19  Hans-Peter Nilsson  <hp@bitrange.com>
+
+       * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
+       STT_NOTYPE symbols to STT_OBJECT.
+
 Mon Mar 18 17:38:03 CET 2002  Jan Hubicka  <jh@suse.cz>
 
        * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
index 90c7f527de6e383772b5208727ad7c01bbbf1a59..d84f2a5f08fc0cd37a5a7c8bc2d6662b9d6d5e86 100644 (file)
@@ -2795,10 +2795,6 @@ NAME(bfd_elf,record_link_assignment) (output_bfd, info, name, provide)
 
   h->elf_link_hash_flags |= ELF_LINK_HASH_DEF_REGULAR;
 
-  /* When possible, keep the original type of the symbol.  */
-  if (h->type == STT_NOTYPE)
-    h->type = STT_OBJECT;
-
   if (((h->elf_link_hash_flags & (ELF_LINK_HASH_DEF_DYNAMIC
                                  | ELF_LINK_HASH_REF_DYNAMIC)) != 0
        || info->shared)