Date: Sat, 05 Jan 2008 15:16:23 +0100 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> To: Tim Kientzle <kientzle@freebsd.org> Cc: freebsd-current@freebsd.org, Peter Schuller <peter.schuller@infidyne.com>, Jason Evans <jasone@freebsd.org>, Peter Wemm <peter@wemm.org> Subject: Re: ELF dynamic loader name Message-ID: <868x348iiw.fsf@ds4.des.no> In-Reply-To: <477EFEAB.8090807@freebsd.org> (Tim Kientzle's message of "Fri\, 04 Jan 2008 19\:51\:07 -0800") References: <477C82F0.5060809@freebsd.org> <863ateemw2.fsf@ds4.des.no> <200801032200.25650.peter.schuller@infidyne.com> <alpine.BSF.1.00.0801031305340.39341@goat.gigo.com> <8663yac62d.fsf@ds4.des.no> <477E72FC.5070304@freebsd.org> <477EA466.6060204@FreeBSD.org> <e7db6d980801041342k562a3459y39003036dc1a5528@mail.gmail.com> <477EFEAB.8090807@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Tim Kientzle <kientzle@freebsd.org> writes: > It also seems that your argument applies just as well to ld-elf.so.1 > and ld-elf32.so.1. Either way, there's more than one ld-elf.so.1, and > therefore more than one name to keep track of. We don't embed ld-elf32.so.1 in 32-bit binaries; if we did, we couldn't run unmodified i386 binaries on amd64, or move i386 binaries built on an amd64 system to a real i386 system. Instead, the kernel automagically translates ld-elf.so.1 to ld-elf32.so.1 for 32-bit binaries, and gdb is none the wiser. (see src/sys/sys/imgact_elf.h, src/sys/kern/imgact_elf.c, and the various instances of Elf_Brandinfo, Elf32_Brandinfo and Elf64_Brandinfo in the kernel for the precise details of how this is done) DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?868x348iiw.fsf>