binutils > 2.21.51.0.2 fails to build glibc

Mike Frysinger vapier@gentoo.org
Wed Jan 12 05:58:00 GMT 2011


On Tuesday, January 11, 2011 23:03:02 H.J. Lu wrote:
> On Tue, Jan 11, 2011 at 6:30 PM, Alan Modra <amodra@gmail.com> wrote:
> > Do you think it is OK for a new GNU ld to without warning build older
> > versions of glibc that segfault at runtime?
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> Not exactly, it segfault at build-time

while it may fail during `make`, it fails while executing the freshly compiled 
local binaries.  so yes, much of glibc was compiled, and then it segfaulted 
while executing.

> If you want to use the latest
> binutils to BUILD your glibc, I think it is OK to require you to patch
> your glibc. I can provide a patch for glibc 2.12.

i think that would help out a lot of people

> I fixed the problem in glibc.  .ctor isn't standard. All ELF C run-time
> libraries should switch to .init_array anyway.

and how are they supposed to know that ?  all people know now is that they 
upgrade their binutils, rebuild things, and the result randomly segfaults.  if 
you're going to purpusefully link broken binaries, you need to warn people.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/binutils/attachments/20110112/3e6e6f1f/attachment.sig>


More information about the Binutils mailing list