[uClinux-dev] bash

David McCullough davidm at snapgear.com
Wed Mar 26 19:34:10 EST 2003


Hi Michael,

You could try the latest tools from:

	http://www.uclinux.org/pub/uClinux/uclinux-elf-tools/

There are quite a few fixes in the 20030314 release that may help.
Some of them fixed stray relocations and alignment of relocations.

Of course using bash on uClinux you will need all the help you
can get,  if it can indeed be done.

You will be better off IMO using the minix shell from user/sh.

Cheers,
Davidm

Jivin Michael.Needle at alcatel.com.au lays it down ...
> I am trying to get bash working on emnux V2.4 (which is based
> on uClinux V2.4.17) on the ARM7TDMI processor.
> 
> I have taken the bash port from the uClinux-dist/user/bash.
> 
> To cross compile I had to modify
> 
> LOCAL_LDFLAGS =-rdynamic
> to 
> 
> LOCAL_LDFLAGS = -Wl,--export-dynamic
> 
> to get a clean link. Apart from that the cross-compile
> is clean.
> 
> The additional compile flags used are,
> -mapcs-32 -mcpu=arm7tdmi -D__linux__
> 
> When I try to run bash on the target host I get the
> following,
> 
> /mnt/nfs> ./bash
> pid 39: killed (signal 11)
> 
> Appearing on the console,
> 
> BINFMT_FLAT: reloc outside program 0x6c309fe5 (0 - 0xbb230), killing!
> BINFMT_FLAT: reloc outside program 0x900000a (0 - 0xbb230), killing!
> BINFMT_FLAT: reloc outside program 0x30000ea (0 - 0xbb230), killing!
> BINFMT_FLAT: reloc outside program 0xdc0a0e1 (0 - 0xbb230), killing!
> BINFMT_FLAT: reloc outside program 0xf002de9 (0 - 0xbb230), killing!
> BINFMT_FLAT: reloc outside program 0x10d82de9 (0 - 0xbb230), killing!
> BINFMT_FLAT: reloc outside program 0x14301be5 (0 - 0xbb230), killing!
> BINFMT_FLAT: reloc outside program 0x5c209fe5 (0 - 0xbb230), killing!
> BINFMT_FLAT: reloc outside program 0x1092e5 (0 - 0xbb230), killing!
> BINFMT_FLAT: reloc outside program 0x101083e5 (0 - 0xbb230), killing!
> BINFMT_FLAT: reloc outside program 0x14301be5 (0 - 0xbb230), killing!
> BINFMT_FLAT: reloc outside program 0x50209fe5 (0 - 0xbb230), killing!
> ....
> 
> The tool chain uses the following versions,
> gcc - gcc version 2.95.3 20010315 (release)
> ar - GNU ar 2.11
> as - GNU assembler version 2.11 (arm-elf) using BFD version 2.11
> ld - GNU ld version 2.11 (with BFD 2.11)
> ranlib - GNU ranlib 2.11
> 
> The hello world program works fine.
> 
> Any assistance would be greatly appreciated.
> 
> regards
> Michael Needle

-- 
David McCullough:    Ph: +61 7 3435 2815  http://www.SnapGear.com
davidm at snapgear.com  Fx: +61 7 3891 3630  Custom Embedded Solutions + Security



More information about the uClinux-dev mailing list