aboutsummaryrefslogtreecommitdiff
path: root/bfd/peicode.h
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2011-09-09 16:28:12 +0000
committerKai Tietz <kai.tietz@onevision.com>2011-09-09 16:28:12 +0000
commite7771322561f06ec5831058f42161b4f9128b372 (patch)
tree67d9c1f380f29d6e3e9da0a5a86411e73f135dfe /bfd/peicode.h
parenta301ba0b9aaf101282e0b5a49c155d033f364577 (diff)
downloadgdb-e7771322561f06ec5831058f42161b4f9128b372.zip
gdb-e7771322561f06ec5831058f42161b4f9128b372.tar.gz
gdb-e7771322561f06ec5831058f42161b4f9128b372.tar.bz2
2011-09-09 Kai Tietz <ktietz@redhat.com>
* peicode.h (pe_ILF_build_a_bfd): Don't remove leading underscore for targets without symbol_leading_char.
Diffstat (limited to 'bfd/peicode.h')
-rw-r--r--bfd/peicode.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/bfd/peicode.h b/bfd/peicode.h
index bca644d..5d10029 100644
--- a/bfd/peicode.h
+++ b/bfd/peicode.h
@@ -884,7 +884,11 @@ pe_ILF_build_a_bfd (bfd * abfd,
if (import_name_type != IMPORT_NAME)
{
char c = symbol[0];
- if (c == '_' || c == '@' || c == '?')
+
+ /* Check that we don't remove for targets with empty
+ USER_LABEL_PREFIX the leading underscore. */
+ if ((c == '_' && abfd->xvec->symbol_leading_char != 0)
+ || c == '@' || c == '?')
symbol++;
}