diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2010-04-27 17:28:15 +0000 |
---|---|---|
committer | Kai Tietz <kai.tietz@onevision.com> | 2010-04-27 17:28:15 +0000 |
commit | 1d2ca237d83678be5c4782309b1c820636c9f60a (patch) | |
tree | 5a192f3aa26db8bcc001b67cb49a1162abf58d74 /binutils/dlltool.c | |
parent | ef72a554d982f439fb9be357386681c1d4fb475c (diff) | |
download | gdb-1d2ca237d83678be5c4782309b1c820636c9f60a.zip gdb-1d2ca237d83678be5c4782309b1c820636c9f60a.tar.gz gdb-1d2ca237d83678be5c4782309b1c820636c9f60a.tar.bz2 |
2010-04-27 Kai Tietz <kai.tietz@onevision.com>
* dlltool.c (main): Query for bfd's underscoring default for
default target case.
2010-04-27 Kai Tietz <kai.tietz@onevision.com>
* binutils-all/dlltool.exp: Allow test for
arm-wince-pe target.
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 280edc1..3a91221 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, |