binutils > 2.21.51.0.2 fails to build glibc
H.J. Lu
hjl.tools@gmail.com
Wed Jan 12 06:44:00 GMT 2011
On Tue, Jan 11, 2011 at 10:39 PM, Alan Modra <amodra@gmail.com> wrote:
> On Tue, Jan 11, 2011 at 10:22:06PM -0800, Ian Lance Taylor wrote:
>> that it's OK for GNU ld to segfault when building an older version of
>> glibc.
>
> It's not the linker that segfaults. ld.so does when running the newly
> built libc.so .init_array entries.
>
> HJ, another idea on fixing this: Adjust DT_{INIT,FINI}_ARRAY and
> DT_{INIT,FINI}_ARRAYSZ in bfd_elf_final_link if the bogus sentinels
> are detected.
>
I thought about it. The bogus sentinels can be in the middle of
.init_array/.fini_array when you have priorities in .init_array/.fini_array
BTW, I understood the pain. I had to patch another C library
which has non-standard crt files. But I did get a slightly better
libc.so.
--
H.J.
More information about the Binutils
mailing list