This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: bug fixing for auto-import-patch
- To: Ralf Habacker <Ralf dot Habacker at saght dot tessag dot com>
- Subject: Re: bug fixing for auto-import-patch
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Mon, 7 May 2001 10:51:23 -0400
- Cc: binutils at sources dot redhat dot com
- References: <001d01c0d6bf$c9551d70$6e032bb7@BRAMSCHE>
Patches for binutils should go to the binutils mailing list. DJ Delorie
is the maintainer of this code and he reads this binutils list.
I've Cc'ed the list.
On Mon, May 07, 2001 at 08:34:37AM +0200, Ralf Habacker wrote:
>Hi,
>
>a short time in the past, I've send you a patch from Paul Sokolovsky
>relating auto-import of dll-symbols. This patch contains a bug on linking
>symbols more than one time.
>Ths diff below fixes this bug.
>
>
>--- pe-dll.c.orig Fri Apr 27 17:25:45 2001
>+++ pe-dll.c Fri May 4 09:25:30 2001
>@@ -902,6 +902,13 @@
> asymbol **symbols;
> int nsyms, symsize;
>
>+ int flags = bfd_get_section_flags (b, s);
>+
>+ /* Skip discarded linkonce sections */
>+ if (flags & SEC_LINK_ONCE
>+ && s->output_section == bfd_abs_section_ptr)
>+ continue;
>+
> current_sec=s;
>
> symsize = bfd_get_symtab_upper_bound (b);
>
>Regards
>
>Ralf Habacker
>EMail: Ralf@habacker.de
> Ralf.Habacker@saght.tessag.com
--
cgf@cygnus.com Red Hat, Inc.
http://sources.redhat.com/ http://www.redhat.com/