From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 16 19:45:47 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 C7C40106566B; Fri, 16 Mar 2012 19:45:47 +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 92E848FC12; Fri, 16 Mar 2012 19:45:47 +0000 (UTC) Received: by dald2 with SMTP id d2so6936124dal.13 for ; Fri, 16 Mar 2012 12:45:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=3yHdZIKZiFFJkka9idPNDKeI2vJ1K1I8zNmmbLyLTWU=; b=xYM6I3aSzw86eRnzU7EllGVg8y07QoogD8OJkarAhrvpV8i5RneWEcowtMGqpaugGt 0Zv/zr8QG7hZuBAnBVe1IhwozkpianpHFYG0s/fHp0WGZFawr5OKfzSrQYU2jV2BmHYb y4Ge/f20JErn68+9mi8JXSz0+xJa86YzM0vDG1tEVZNbHu/zo2rymIb2e3K2jP+HDH1W XQ0WugfBEb26L4SB8DIQUNWY3E5t29gCZiwvWG1cmHmkbGq1V8NTh0xc0DI/rWW6WodE 1O91s2/Os7vEGF6C0sC7LiwSeazJFADdvmEPmv9HQtg3coMqdT0BlK8o+mduIPE9xaWi JxBA== MIME-Version: 1.0 Received: by 10.68.201.6 with SMTP id jw6mr10970489pbc.92.1331927147153; Fri, 16 Mar 2012 12:45:47 -0700 (PDT) Received: by 10.68.208.168 with HTTP; Fri, 16 Mar 2012 12:45:47 -0700 (PDT) Date: Fri, 16 Mar 2012 15:45:47 -0400 Message-ID: From: Super Bisquit To: freebsd-emulation@freebsd.org, powerpc@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: 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: Fri, 16 Mar 2012 19:45:48 -0000 "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.