Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Nov 2002 15:44:31 +0100
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        alpha@FreeBSD.ORG
Subject:   Re: ev4/5/6 issue ? 
Message-ID:  <55059.1037025871@critter.freebsd.dk>
In-Reply-To: Your message of "Mon, 11 Nov 2002 08:56:57 EST." <15823.46889.535089.487743@grasshopper.cs.duke.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <15823.46889.535089.487743@grasshopper.cs.duke.edu>, Andrew Gallatin
 writes:
>
>Poul-Henning Kamp writes:
> > (gdb) where
> > #0  0x12001f4e8 in ?? ()
>
>Try 'disassemble' here, please.

(gdb) disassemble 0x12001f4e8
No function contains specified address.

(gdb) disassemble
No function contains program counter for selected frame.


> > 	1. Why doesn't file(1) tell me if a binary is ev45 or ev6 ?
> > 
> > 	2. Couldn't the elf activator not find out and say "Sorry,
> > 	   cannot execute ev6 on this machine" ?
>
>Because there is no way of knowing, and in general, you don't need to
>know. 

Well, the compiler could put it somewhere in the elf and it seems
like I do :-)

>As I said previously, the kernel is supposed to fixup newer
>instruction executed on older machines.   However, this is expensive,
>and the toolchain should not be emitting code with those instructions
>in the first place, unless it is told to.

Right, so much for theory :-)

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55059.1037025871>