diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2011-09-09 16:28:07 +0000 |
---|---|---|
committer | Kai Tietz <kai.tietz@onevision.com> | 2011-09-09 16:28:07 +0000 |
commit | d79d03a38e03238e66ab4d5931f581f9c0cbc474 (patch) | |
tree | 139365f3ab14e7558277ec25197026d7aa859fa7 /bfd/peicode.h | |
parent | 2cee655a96a3ef92865054fa30be4d253c5ddd14 (diff) | |
download | binutils-redhat-d79d03a38e03238e66ab4d5931f581f9c0cbc474.tar.gz |
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.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bfd/peicode.h b/bfd/peicode.h index bca644dc62..5d100298f1 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++; } |