From 1d2ca237d83678be5c4782309b1c820636c9f60a Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Tue, 27 Apr 2010 17:28:15 +0000 Subject: 2010-04-27 Kai Tietz * dlltool.c (main): Query for bfd's underscoring default for default target case. 2010-04-27 Kai Tietz * binutils-all/dlltool.exp: Allow test for arm-wince-pe target. --- binutils/dlltool.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'binutils/dlltool.c') 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, -- cgit v1.1