aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-09-19 13:05:17 +0930
committerAlan Modra <amodra@gmail.com>2018-09-19 15:08:48 +0930
commitaa654ee8f830ca0d4d31bad0ff18b9e6261267fd (patch)
treee729ec0c34c2f20e79f266d2a6a00e7428beab61 /ld/ldmain.c
parent3d50f1706348142d0ad64cd9fad044e68951655e (diff)
downloadgdb-aa654ee8f830ca0d4d31bad0ff18b9e6261267fd.zip
gdb-aa654ee8f830ca0d4d31bad0ff18b9e6261267fd.tar.gz
gdb-aa654ee8f830ca0d4d31bad0ff18b9e6261267fd.tar.bz2
Tweak map file output for pei386_auto_import
* ldmain.c (add_archive_element): Handle auto-inport symbols when printing map.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r--ld/ldmain.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index f31eeb2..aca9b1b 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -850,6 +850,10 @@ add_archive_element (struct bfd_link_info *info,
int len;
h = bfd_link_hash_lookup (info->hash, name, FALSE, FALSE, TRUE);
+ if (h == NULL
+ && info->pei386_auto_import
+ && CONST_STRNEQ (name, "__imp_"))
+ h = bfd_link_hash_lookup (info->hash, name + 6, FALSE, FALSE, TRUE);
if (h == NULL)
from = NULL;