This is the mail archive of the libc-help@sourceware.org mailing list for the glibc 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: Is it possible to build ld.so alone?


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


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