This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

Re: binutils > 2.21.51.0.2 fails to build glibc


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.


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