bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/20979] DLL relocation totally broken


From: lindasc at qq dot com
Subject: [Bug binutils/20979] DLL relocation totally broken
Date: Sat, 07 Jan 2017 07:12:36 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=20979

--- Comment #5 from Linda Zhang <lindasc at qq dot com> ---
(In reply to Linda Zhang from comment #4)
> (In reply to Linda Zhang from comment #2)
> > (In reply to Nick Clifton from comment #1)
> > > Hi Linda,
> > > 
> > > > Binutils: 2.25.1
> > > 
> > > Have you tried using a more recent version of the binutils ?  We are
> > > currently on release 2.27 and release 2.28 is about to happen.
> > > 
> > > Cheers
> > >   Nick
> > 
> > Hi Nick,
> > 
> > Thank you for your reply, but I don't know how to build binutils for mingw
> > so I can only wait for their builds. :(
> > I even don't know whom to ask so I'm asking mingw now because it's their
> > bundle.
> > 
> > I found at least in lib/gcc/i686-w64-mingw32/6.2.0/crtbegin.o, some NULL
> > pointers were accidently relocated thus lead to SEGFAULT. There may be more
> > errors. Buggy builds from at least 4.8.x to 6.2.
> 
> Hi Nick,
> 
> I think I found the reason.
> 
> Binutils (it should be) produced duplicate .reloc info into the binary. The
> wrong one comes first, and the correct one comes after, resulting in double
> relocation.
> 
> The new attached picture "bug.png" says all.

OK, update, both gcc -shared and ld -shared are OK. The bug is confirmed to be
DLLWRAP issues, which I see was deprecated in 2002......

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]