From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 17 03:51:31 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 01ED9106564A; Sat, 17 Mar 2012 03:51:31 +0000 (UTC) (envelope-from superbisquit@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id C4C698FC18; Sat, 17 Mar 2012 03:51:30 +0000 (UTC) Received: by dald2 with SMTP id d2so7456528dal.13 for ; Fri, 16 Mar 2012 20:51:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=lT6xrQS5NF96k5U4fZYkbFidn4Ja/eq/LhQQpvHifmI=; b=B/tXQoxY+xyCNdTKGkAfFb8p0LmsrSwmpE9WA0On7xIbfbTdHtcM2n8HeUc3MGsdT/ 9NHHc3hcEFRM8C000IGwUx6RheyZH6s12AtAJf2THvKBdmVp129Y4IjBCNi/3nbggomV tUKtlSHUmjDVnN2JM/qVjtr9aDYkVxmYN0M5UPNXVSYtmP7+6oieRT6hz484m9Zu4p7Q 12qG0l7YxseBR0Er5fF6wPRqh4E/DJrKqV9UM8i5MkMsStOIUSdcx+aztXzFHJB/e1ok LW1yh7Pv01hOG6vfug0TrV2THqrLlQEktNcURVxUiuFYd60UIlrsX/2993ZrnqYcMgMX 5jIg== MIME-Version: 1.0 Received: by 10.68.125.135 with SMTP id mq7mr11016764pbb.155.1331956290459; Fri, 16 Mar 2012 20:51:30 -0700 (PDT) Received: by 10.68.208.168 with HTTP; Fri, 16 Mar 2012 20:51:30 -0700 (PDT) In-Reply-To: <20120316155901.77ca48ee@kan.dyndns.org> References: <20120316155901.77ca48ee@kan.dyndns.org> Date: Fri, 16 Mar 2012 23:51:30 -0400 Message-ID: From: Super Bisquit To: Alexander Kabaev Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-emulation@freebsd.org, FreeBSD PowerPC ML Subject: Re: ELF header adjusting X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Mar 2012 03:51:31 -0000 On Fri, Mar 16, 2012 at 3:59 PM, Alexander Kabaev wrote: > On Fri, 16 Mar 2012 15:45:47 -0400 > Super Bisquit wrote: > > > "Okay, what in the hell is he trying to do now?" > > The answer to your question is: > > I've looked at the header file for the bin/java and bin/java_vm in > > the ibm powerpc java binaries. There is a reference to /lib/ld.so.1 > > in a Linux installation which is very similar > > to /usr/libexec/ld-elf.so.1 in a FreeBSD installation. > > > > chipchop# pwd > > /tmp/install.dir.53010/Linux/resource/jre/bin > > chipchop# ls > > ControlPanel ikeyman java_vm jcontrol keytool > > ktab rmid unpack200 > > classic j9vm javaw jdmpview kinit > > pack200 rmiregistry > > ikeycmd java javaws jextract klist > > policytool tnameserv > > chipchop# elfedit --input-osabi=FreeBSD --output-osabi=FreeBSD java > > elfedit: Error: java: Unmatched EI_OSABI: 0 is not 9 > > chipchop# elfedit --input-osabi=FreeBSD --output-osabi=FreeBSD java_vm > > elfedit: Error: java_vm: Unmatched EI_OSABI: 0 is not 9 > > chipchop# elfedit --output-osabi=FreeBSD java_vm > > chipchop# elfedit --output-osabi=FreeBSD java > > chipchop# > > > > If in doubt about my finding for similarities between /lib/ld.so.1 and > > /usr/lbexec/ld-elf.so.1 then open the former with nano orvi and the > > latter with vi to see the headers. > > Would it be a much of a shock to discover that two export largely > intersecting list of functions, both being ELF loaders? Would rewriting the header to use the FreeBSD equivalent to the Linux ones possibly work? Ignore - for the moment- the reference to ld-elf.so.1. /usr/lib/ld.so.1 FreeBSD /lib/ld.so.1 Linux. (I did a re-search)Both serve the same purpose. The binaries are obviously checking for the Linux path. > > Sadly, you > provide no answer to the question you yourself ask on the very first > line of own messages, so the point of your message is somewhat unclear > to me still. > > -- > Alexander Kabaev > Has anyone reported anything on changing the called for libraries and such in the file to use the FreeBSD path instead?