aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2011-02-15 16:15:55 +0000
committerKai Tietz <kai.tietz@onevision.com>2011-02-15 16:15:55 +0000
commitfd11958c53698bd13414490fb6a18d278b1ce3de (patch)
tree48d8e4261827a37f6779682b117007cc45f5d18c /ld
parent494e194e77ee1e03d260268fc132dccf308f223e (diff)
downloadgdb-fd11958c53698bd13414490fb6a18d278b1ce3de.zip
gdb-fd11958c53698bd13414490fb6a18d278b1ce3de.tar.gz
gdb-fd11958c53698bd13414490fb6a18d278b1ce3de.tar.bz2
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.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/pe-dll.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 1a0dd35..5cb6715 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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
diff --git a/ld/pe-dll.c b/ld/pe-dll.c
index 9d3ee5d..0c1c0de 100644
--- a/ld/pe-dll.c
+++ b/ld/pe-dll.c
@@ -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)