From owner-freebsd-questions@FreeBSD.ORG Thu Oct 11 06:38:47 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 38C4716A41A for ; Thu, 11 Oct 2007 06:38:47 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.237]) by mx1.freebsd.org (Postfix) with ESMTP id 6AE1913C46E for ; Thu, 11 Oct 2007 06:38:46 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so326924nzf for ; Wed, 10 Oct 2007 23:38:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:content-transfer-encoding:cc:from:subject:date:to:x-mailer; bh=KPwcjdINceo/GegkrRdqJYMYxugXiSXgClzatC52Ky8=; b=nkQ1q8TdR2cyY6bTRN9+rTmtNOPMUcAK2ul9MQMPgbs7oIlUu0jJQNlaPzj5igvMz1erUzcil4c/7Tms8//Z1wlExhzF0hrKgVpJLNW8WeNpIDjQNihrUkZomh1uA0aOX4RHtZoI8yYH7+V7nXYoHY7CvQC/8SGiz8aqeNIzr5o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:content-transfer-encoding:cc:from:subject:date:to:x-mailer; b=DbFNUtB6MvXZhAEBejfGcvjTfprPOanW88j4MXRBMZJZivk72mzNVcmb4fruoUKwyws5kNLhMQllkiU1txjfYERmQE0OCpTd65q/EkNPQbOD9/s6h5JpqeS5KLbdFQTd6Yr0bwZLzwTxjcpG4cPTESvdctJyp8TOw9aIDy6ZU6s= Received: by 10.64.181.12 with SMTP id d12mr3355437qbf.1192084725043; Wed, 10 Oct 2007 23:38:45 -0700 (PDT) Received: from ?192.168.1.7? ( [74.134.230.123]) by mx.google.com with ESMTPS id c1sm1543423nzd.2007.10.10.23.38.43 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 10 Oct 2007 23:38:44 -0700 (PDT) In-Reply-To: References: <470DC1CB.3010705@FreeBSD.org> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <94c73a687695204e4414b3721a92e9f7@gmail.com> Content-Transfer-Encoding: 7bit From: Joshua Isom Date: Thu, 11 Oct 2007 01:38:44 -0500 To: "Aryeh Friedman" X-Mailer: Apple Mail (2.624) Cc: FreeBSD Questions Subject: Re: rebranding a i386 binary to be a amd64 binary X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Oct 2007 06:38:47 -0000 On Oct 11, 2007, at 1:34 AM, Aryeh Friedman wrote: > On 10/11/07, Kris Kennaway 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.