Re: dyld 2 questions
Re: dyld 2 questions
- Subject: Re: dyld 2 questions
- From: "mm w" <email@hidden>
- Date: Sat, 8 Mar 2008 12:31:19 -0800
no it's really not at boottime
imagine in a syslog
loaded mach-o index 0
foo prog array {x86_64,i386}
(mach-o [index 0
x86_64 code
index 1
i386 code])
my question was related to runtime, if I could force to load i386 code
rather than x86_64 code section
I don't care to get the process, I wanted to know which section has been loaded
yes and sure I know well everything that you try to express but it's
realy out the box of my question
Best Regards
On Sat, Mar 8, 2008 at 11:54 AM, David Elliott <email@hidden> wrote:
> Per-process:
> arch -i386 foobar
>
> System-wide:
> On x86-64 you can add -legacy to the boot-args nvram property (using
> the nvram command-line tool). That will force the kernel to run in
> i386 mode instead of x86-64 mode so you will not be able to run 64-bit
> programs at all and everything including the kernel itself will run in
> true i386 mode.
>
> In this situation, trying something like arch -x86_64 foobar will
> totally fail since the CPU will not ever be in 64-bit mode. If that's
> what you want, you can have it. It's also useful if you are trying to
> run Darwin on certain CPUs like late-model Pentium 4 that pass the
> startup checks in tsc.c, or at least did until Leopard's xnu removed
> the check for CPU family 0xf (extended), but fail later on in kernel
> startup because of a missing bcopy 64 commpage routine (which requires
> Supplemental SSE3 which is not present on Pentium 4).
>
> -Dave
>
>
>
>
> On Mar 8, 2008, at 2:16 PM, mm w wrote:
>
> > ha thank you, something that maches 8)
> > my question was not related to gcc or compilation time
> >
> > it was related to runtime, so there is no way to force the OS to run
> > in i386 mode,
> > but as far I know, the mach-o loader is able to deal with it, i just
> > wanted to know if it was possible
> > to force it.
> >
> > thank you for your answers
> >
> > On Sat, Mar 8, 2008 at 11:11 AM, Shantonu Sen <email@hidden> wrote:
> >> System-wide? No. Not without recompiling your kernel.
> >>
> >> Shantonu
> >>
> >> Sent from my MacBook
> >>
> >>
> >>
> >> On Mar 8, 2008, at 11:08 AM, mm w wrote:
> >>
> >>> So, to make simple, imagine a wonderful OS running on 32 extend 64
> >>> arch, all the sources are fat i386/ x86_64
> >>> is it to possible to influence the prefered mode
> >>
> >>> _______________________________________________
> >>> Do not post admin requests to the list. They will be ignored.
> >>> Darwin-kernel mailing list (email@hidden)
> >>> Help/Unsubscribe/Update your Subscription:
> >>> @apple.com
> >>>
> >>> This email sent to email@hidden
> >>
> >>
> >
> >
> >
> > --
> > -mmw
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Darwin-kernel mailing list (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> >
> > This email sent to email@hidden
>
>
--
-mmw
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden