From owner-freebsd-hackers Tue Jun 13 20:45:32 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from xena.gsicomp.on.ca (gsi.enoreo.on.ca [209.82.52.145]) by hub.freebsd.org (Postfix) with ESMTP id 3D63037BB4B for ; Tue, 13 Jun 2000 20:45:28 -0700 (PDT) (envelope-from matt@xena.gsicomp.on.ca) Received: from matt (cr677933-a.ktchnr1.on.wave.home.com [24.42.130.87]) by xena.gsicomp.on.ca (8.10.1/8.9.2) with SMTP id e5E3jDK63483; Tue, 13 Jun 2000 23:45:14 -0400 (EDT) (envelope-from matt@xena.gsicomp.on.ca) Message-ID: <006601bfd5b2$fc61dc30$1200a8c0@matt> From: "Matthew Emmerton" To: "Mark Newton" Cc: "Dan Nelson" , 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> <20000608115729.C46446@internode.com.au> Subject: Re: SVR4 Emulation [was Re: iBCS status?] Date: Tue, 13 Jun 2000 23:45:28 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Wed, Jun 07, 2000 at 10:24:15PM -0400, Matthew Emmerton wrote: > > 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. > Even more interesting is the SCO document on how ELFs are pseudo-branded. OpenServer 5: No brand, but have a 28-byte NOTE field. UnixWare 7: No brand, but have one of the flags set in the FLAG field. (I couldn't find anything more specific than this.) -- Matthew Emmerton GSI Computer Services +1 (800) 217-5409 (Canada) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message