From 2979a883540d9ce6e41dd0509ea2a345de9cf050 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 28 Feb 2017 16:54:16 +0000 Subject: Revert "Add symbol called __nm_ to exported symbols created by dlltool." This reverts commit 47612ae91c5f2de8960df1d96adf225d2455123f. --- binutils/ChangeLog | 7 ------- binutils/dlltool.c | 20 +------------------- 2 files changed, 1 insertion(+), 26 deletions(-) (limited to 'binutils') diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 21ae4af..f54c12d 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -4,13 +4,6 @@ * dwarf.c (display_loclists_list, display_debug_rnglists_list): Initialize begin and end. -2017-02-27 Rudy Y - - PR 20881 - * dlltool.c (secdata): Align .idata$6 on 2 byte boundary. - (make_one_lib_file): Export a symbol called __nm_ for use - with auto-importing. - 2017-02-25 Alan Modra * testsuite/binutils-all/dw5.S: Replace .string with .asciz. diff --git a/binutils/dlltool.c b/binutils/dlltool.c index 88ee5a5..15e6d7f 100644 --- a/binutils/dlltool.c +++ b/binutils/dlltool.c @@ -2338,7 +2338,7 @@ static sinfo secdata[NSECS] = INIT_SEC_DATA (IDATA7, ".idata$7", SEC_HAS_CONTENTS, 2), INIT_SEC_DATA (IDATA5, ".idata$5", SEC_HAS_CONTENTS, 2), INIT_SEC_DATA (IDATA4, ".idata$4", SEC_HAS_CONTENTS, 2), - INIT_SEC_DATA (IDATA6, ".idata$6", SEC_HAS_CONTENTS, 2) + INIT_SEC_DATA (IDATA6, ".idata$6", SEC_HAS_CONTENTS, 1) }; #else @@ -2543,18 +2543,6 @@ make_one_lib_file (export_type *exp, int i, int delay) #endif ptrs[oidx++] = exp_label; } -#ifndef DLLTOOL_PPC - else - { - /* PR 20881: Add __nm_ for the exported library. - FIXME: Might be needed for PowerPC, but currently unable to test this. */ - exp_label = bfd_make_empty_symbol (abfd); - exp_label->name = make_imp_label ("__nm_", exp->name); - exp_label->section = secdata[IDATA6].sec; - exp_label->flags = BSF_GLOBAL; - exp_label->value = 0; - } -#endif /* Generate imp symbols with one underscore for Microsoft compatibility, and with two underscores for backward @@ -2585,12 +2573,6 @@ make_one_lib_file (export_type *exp, int i, int delay) if (create_compat_implib) ptrs[oidx++] = iname; ptrs[oidx++] = iname2; -#ifndef DLLTOOL_PPC - /* PR 20881: - According to pe-dll.c __nm_ should be add after __imp_. */ - if (exp->data) - ptrs[oidx++] = exp_label; -#endif iname_lab_pp = ptrs + oidx; ptrs[oidx++] = iname_lab; -- cgit v1.1