> 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to