diff options
Diffstat (limited to 'binutils/dlltool.c')
-rw-r--r-- | binutils/dlltool.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/binutils/dlltool.c b/binutils/dlltool.c index 280edc14dd0..3a91221c45e 100644 --- a/binutils/dlltool.c +++ b/binutils/dlltool.c @@ -4143,6 +4143,16 @@ main (int ac, char **av) /* Check if we generated PE+. */ create_for_pep = strcmp (mname, "i386:x86-64") == 0; + { + /* Check the default underscore */ + int u = leading_underscore; /* Underscoring mode. -1 for use default. */ + if (u == -1) + bfd_get_target_info (mtable[machine].how_bfd_target, NULL, + NULL, &u, NULL); + if (u != -1) + leading_underscore = (u != 0 ? TRUE : FALSE); + } + if (!dll_name && exp_name) { /* If we are inferring dll_name from exp_name, |