ELF header adjusting
superbisquit at gmail.com
Sat Mar 17 03:51:31 UTC 2012
On Fri, Mar 16, 2012 at 3:59 PM, Alexander Kabaev <kabaev at gmail.com> wrote:
> On Fri, 16 Mar 2012 15:45:47 -0400
> Super Bisquit <superbisquit at gmail.com> 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
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?
More information about the freebsd-emulation