2011-02-15 Kai Tietz <kai.tietz@onevision.com>
authorKai Tietz <kai.tietz@onevision.com>
Tue, 15 Feb 2011 16:15:55 +0000 (16:15 +0000)
committerKai Tietz <kai.tietz@onevision.com>
Tue, 15 Feb 2011 16:15:55 +0000 (16:15 +0000)
        * pe-dll.c (process_def_file_and_drectve): Don't strip
        leading underscore from symbol by calling bfd_find_version_for_sym.

ld/ChangeLog
ld/pe-dll.c

index 1a0dd35cbd4bdcd3a511b72aa9adffa748ce712c..5cb671540f9ad13483d0bd57f75f385f36f4b68b 100644 (file)
@@ -1,3 +1,8 @@
+2011-02-15  Kai Tietz  <kai.tietz@onevision.com>
+
+       * pe-dll.c (process_def_file_and_drectve): Don't strip
+       leading underscore from symbol by calling bfd_find_version_for_sym.
+
 2011-02-14  Mike Frysinger  <vapier@gentoo.org>
 
        * ldlang.c (lang_vers_match): Declare a new c_sym, assign it to
index 9d3ee5da2dc4d2ff7db59b1ed7b2d4136f00d471..0c1c0ded8622fcd20d9b09c3a0b2b227c0a39303 100644 (file)
@@ -720,9 +720,8 @@ process_def_file_and_drectve (bfd *abfd ATTRIBUTE_UNUSED, struct bfd_link_info *
              if (lang_elf_version_info && would_export)
                {
                  bfd_boolean hide = 0;
-                 char ofs = pe_details->underscored && symbols[j]->name[0] == '_';
                  (void) bfd_find_version_for_sym (lang_elf_version_info,
-                               symbols[j]->name + ofs, &hide);
+                               symbols[j]->name, &hide);
                  would_export = !hide;
                }
              if (would_export)