Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Oct 2007 01:38:44 -0500
From:      Joshua Isom <jrisom@gmail.com>
To:        "Aryeh Friedman" <aryeh.friedman@gmail.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: rebranding a i386 binary to be a amd64 binary
Message-ID:  <94c73a687695204e4414b3721a92e9f7@gmail.com>
In-Reply-To: <bef9a7920710102334j29c648bdmc0109afeb2ac659f@mail.gmail.com>
References:  <bef9a7920710102232q415939ye2788ba977313ba2@mail.gmail.com> <470DC1CB.3010705@FreeBSD.org> <bef9a7920710102334j29c648bdmc0109afeb2ac659f@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Oct 11, 2007, at 1:34 AM, Aryeh Friedman wrote:

> On 10/11/07, Kris Kennaway <kris@freebsd.org> wrote:
>> Aryeh Friedman wrote:
>>> Even though I know this is asking for it I want to test the new 
>>> nVidia
>>> driver on amd64 and the only issue with a hand compile (from nVidia's
>>> tar not the ports one) is src/nv-kernel.o is branded elf-i386-32 and
>>> amd64 wants it branded elf-amd64-64.  This file comes from them as a
>>> precompiled object so rebranding seems to be my only option.
>>> _______________________________________________
>>> freebsd-questions@freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>> To unsubscribe, send any mail to 
>>> "freebsd-questions-unsubscribe@freebsd.org"
>>>
>>>
>>
>> Uh it really is an i386 binary, "rebranding" won't magically change 
>> all
>> the code.
>
> All I want to do is make it compile so I can test it (like I said I
> know it is inherently dangerous)
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe@freebsd.org"
>

It's not inherently dangerous, it's not possible.  What you need to do 
is disassemble the code(probably illegal), port it to amd64, and 
reassemble it.  It would require intimate knowledge of i386 asm and 
amd64 asm.  The architectures are more different than you might expect.




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