elf2flt questions

2008-06-04 Thread Denys Vlasenko
Hi Mike. A bit of a background of what I am doing here. I was given a blackfin board (BF537). I want to build and run busybox on it (for starters). I never built or ran blackfin binaries, and more broadly have no experience with flat binaries for any architecture. I want to do it in "Linux from

Re: elf2flt questions

2008-06-04 Thread Bernd Schmidt
Denys Vlasenko wrote: > I want to do it in "Linux from scratch" style. This way, > I will get better understanding of the way it is done, > and possibly stumble upon rough edges in busybox, > uclubc, etc. This will lead to "itch scratching" > and bug fixing. It will also lead to unnecessary pain.

Re: elf2flt questions

2008-06-04 Thread Denys Vlasenko
On Thursday 05 June 2008 02:13, Denys Vlasenko wrote: > Can you write up a small explanation what elf2flt does, how to produce > a flat executable with it? Let's say in my situation - I seem to have > correctly built static elf bfin busybox, can I make a flat one out of it? Straightforward approac

Re: elf2flt questions

2008-06-04 Thread Denys Vlasenko
On Thursday 05 June 2008 02:34, Bernd Schmidt wrote: > > elf binaries, it says "BINFMT_FLAT: bad magic/rev (0x1010100, need 0x5)". > > One thing I just remembered is that we used to have non-standard flat > files. Version 5 doesn't exist in any tools/kernels other than ancient > Blackfin distri

Re: elf2flt questions

2008-06-05 Thread Mike Frysinger
On Wednesday 04 June 2008, Denys Vlasenko wrote: > On Thursday 05 June 2008 02:13, Denys Vlasenko wrote: > > Can you write up a small explanation what elf2flt does, how to produce > > a flat executable with it? Let's say in my situation - I seem to have > > correctly built static elf bfin busybox,

Re: elf2flt questions

2008-06-05 Thread Mike Frysinger
On Wednesday 04 June 2008, Denys Vlasenko wrote: > On Thursday 05 June 2008 02:34, Bernd Schmidt wrote: > > > elf binaries, it says "BINFMT_FLAT: bad magic/rev (0x1010100, need > > > 0x5)". > > > > One thing I just remembered is that we used to have non-standard flat > > files. Version 5 doesn't e

Re: elf2flt questions

2008-06-05 Thread Denys Vlasenko
On Thursday 05 June 2008 10:49, Mike Frysinger wrote: > > > i know at least 4 implementations out there that are > > > completely different. the only thing ive found in common is that simply > > > doing `mktemp` results in a filename. > > > > Well, that's the problem I want to solve: busybox's one

Re: elf2flt questions

2008-06-05 Thread Luciano Rocha
On Thu, Jun 05, 2008 at 01:00:39PM +0200, Denys Vlasenko wrote: > On Thursday 05 June 2008 10:49, Mike Frysinger wrote: > > > > i know at least 4 implementations out there that are > > > > completely different. the only thing ive found in common is that simply > > > > doing `mktemp` results in a f

Re: elf2flt questions

2008-06-05 Thread Bernhard Fischer
On Thu, Jun 05, 2008 at 01:00:39PM +0200, Denys Vlasenko wrote: >On Thursday 05 June 2008 10:49, Mike Frysinger wrote: >> everyone-should-be-using-today: mktemp from coreutils great. They switched to git and didn't turn off CVS, and i bet CVS is not updated anymore since at least 20071210. __

Re: elf2flt questions

2008-06-05 Thread Denys Vlasenko
On Thursday 05 June 2008 13:13, Luciano Rocha wrote: > > None of the following: > > > > coreutils-5.2.1 > > coreutils-6.3 > > coreutils-6.8 > > coreutils-6.9 > > > > has mktemp applet, er, program. > > Mine do, in /bin/mktemp. coreutils-6.10-23.fc9.i386. > > Coreutils includes src/mktemp.c sinc

Re: elf2flt questions

2008-06-05 Thread Bernd Schmidt
Denys Vlasenko wrote: > busybox_unstripped: file format elf32-bfinfdpic Noticed this... Trying to use an FDPIC toolchain with elf2flt will produce interesting results. Bernd -- This footer brought to you by insane German lawmakers. Analog Devices GmbH Wilhelm-Wagenfeld-Str. 6 80

Re: elf2flt questions

2008-06-05 Thread Mike Frysinger
On Thursday 05 June 2008, Denys Vlasenko wrote: > On Thursday 05 June 2008 14:17, Bernd Schmidt wrote: > > Denys Vlasenko wrote: > > > busybox_unstripped: file format elf32-bfinfdpic > > > > Noticed this... Trying to use an FDPIC toolchain with elf2flt will > > produce interesting results. > >

Re: elf2flt questions

2008-06-05 Thread Denys Vlasenko
On Thursday 05 June 2008 14:17, Bernd Schmidt wrote: > Denys Vlasenko wrote: > > > busybox_unstripped: file format elf32-bfinfdpic > > Noticed this... Trying to use an FDPIC toolchain with elf2flt will > produce interesting results. Will this fare better? bfin-uclinux-objdump -xdr busybox_