This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bug fixing for auto-import-patch


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]