Date: Thu, 8 Jun 2000 11:57:29 +0930 From: Mark Newton <newton@internode.com.au> To: Matthew Emmerton <matt@xena.gsicomp.on.ca> Cc: Dan Nelson <dnelson@emsphone.com>, freebsd-hackers@FreeBSD.ORG Subject: Re: SVR4 Emulation [was Re: iBCS status?] Message-ID: <20000608115729.C46446@internode.com.au> In-Reply-To: <000a01bfd0f0$a760ca50$1200a8c0@matt> References: <000a01bfcf7a$cc810330$1200a8c0@matt> <20000606152128.B82736@internode.com.au> <20000606012552.A1515@dan.emsphone.com> <20000606162453.B83108@internode.com.au> <20000606094719.A19961@dan.emsphone.com> <006101bfd04c$59de5c60$1200a8c0@matt> <20000607094626.B22129@dan.emsphone.com> <20000608101038.B46114@internode.com.au> <000a01bfd0f0$a760ca50$1200a8c0@matt>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jun 07, 2000 at 10:24:15PM -0400, Matthew Emmerton wrote: > > Each variant would have its own ELF brand to aid the selection of the > > correct API. > > Makes sense. On a related note, I'm curious to see how this will integrate > into existing non-kernel tools. For example, truss and brandelf) only > understand BSD and Linux ELF binaries, and will require modifications to > identify all the different brands. brandelf will really understand any brand at all; We just add special cases to suppress the need for -f for "known" brands. As it happens, though, there's no reason why you can't run "brandelf -f -t BOGUS-BOGUS foo" and have it put a BOGUS-BOGUS brand into an ELF object called foo. > What may compound the problem is if > multiple ELF formats use the same brand, or none at all (as is the case with > SCO ODT5 binaries.) Well, yes, that's the thing - Branding is, AFAICT, specific to FreeBSD and Linux ELF; All other OSs need either a heuristic to select the appropriate emulator (for example, the pathname to the ELF interpreter in the executable, which doesn't always work), or an explicit branding, or an appropriate setting of the kern.fallback_elf_brand sysctl MIB variable. - mark -- Mark Newton Email: newton@internode.com.au (W) Network Engineer Email: newton@atdot.dotat.org (H) Internode Systems Pty Ltd Desk: +61-8-82232999 "Network Man" - Anagram of "Mark Newton" Mobile: +61-416-202-223 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000608115729.C46446>