This is the mail archive of the
mailing list for the glibc project.
ld-linux and ld-funcs thoughts
- From: "sfora dim" <sfora dot dim at gmail dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Tue, 29 May 2007 23:58:10 +0300
- Subject: ld-linux and ld-funcs thoughts
- References: <firstname.lastname@example.org> <email@example.com>
(had some sending problems, sorry for duplication if happened)
I was expecting that ld-linux (from glibc) and ld (from binutils)
will have similarities. Albeit they are in two different packages
and developers, they both do some kind of linking and mess
with ELF (I'm talking Linux) files.
I was especially expecting ld-linux to use the BFD library, too.
But when I read the ld-linux sources (elf/rtld.c, dl*.c and friends)
I found out that ld-linux and the dl functions does not use the BFD.
They handle the ELF files directly. open, read, direct low-level
backend-style (in BFD terminology..) work.
Why is that ?
How come there are no linking-code similarities between ld and ld-linux ?
Why does ld-linux and ld-funcs have to implement everything
again and not use the BFD library (or maybe a trimmed version
of it, so we won't waste memory and time on unwanted file formats) ?
why do everything from scratch ? just for efficiency sake ?