This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Is it possible to build ld.so alone?
- From: Arjun Shankar <arjun dot is at lostca dot se>
- To: ??? <lbxlbxlbxlbxlbx at gmail dot com>
- Cc: libc-help at sourceware dot org
- Date: Thu, 12 Nov 2015 14:40:02 +0000
- Subject: Re: Is it possible to build ld.so alone?
- Authentication-results: sourceware.org; auth=none
- References: <CAJjZs0=iaj_3KQirA9eK8osgr002xFxwQmXXJ=kZ-zPb7_Y9kA at mail dot gmail dot com>
Hi!
> Hi! I changed some code of dynamic linker(ld.so), and I want to build
> and debug it. I find it extremely costly to build the entire glibc, so
> I'm looking forward to build it alone. But the makefiles are so
> complicated that I can't figure it out. Is that any possible way to do
> that?
I just built glibc, then touched a bunch of 'dl-*' files and rtld.c in the
elf/ subdirectory and ran `make -j2' to rebuild only the relevant bits, and
it finished in < 30 seconds on my machine (Nothing fancy. It is a three year
old laptop with an Intel Core CPU).
I don't really hack on glibc (except the occasional test patch or something
small), so I don't know if this simulates modifying the loader and
rebuilding. But I think it should. Does it?
Cheers,
Arjun