Tweak map file output for pei386_auto_import
authorAlan Modra <amodra@gmail.com>
Wed, 19 Sep 2018 03:35:17 +0000 (13:05 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 19 Sep 2018 05:38:48 +0000 (15:08 +0930)
* ldmain.c (add_archive_element): Handle auto-inport symbols
when printing map.

ld/ChangeLog
ld/ldmain.c

index d0e75595f8e68b797d85f2637faeea8dc865b38f..bf5441f6954b6198f2f5e863ffd5f17bce09d129 100644 (file)
@@ -1,3 +1,8 @@
+2018-09-19  Alan Modra  <amodra@gmail.com>
+
+       * ldmain.c (add_archive_element): Handle auto-inport symbols
+       when printing map.
+
 2018-09-17  Alan Modra  <amodra@gmail.com>
 
        * testsuite/ld-elf/comm-data5.d: Remove notarget for hppa.
index f31eeb29c3ceac62adb0df73c6f1d08fef8a23ea..aca9b1bb5d00320a9adaab4be67a19fa1d6ecad0 100644 (file)
@@ -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;
This page took 0.037359 seconds and 4 git commands to generate.