On Saturday 12 April 2008 21:31, Tiago Maluta wrote:
> Hi,
> 
> I'm trying to compile Busybox for ARM using toolchains from CodeSourcery 
> (arm-2007q3). I'm using with uclibc.

Which version of busybox?

> --- from Makefile I changed: ---
> ARCH=arm
> CROSS_COMPILE=arm-uclinuxeabi-
> 
> But, after make I got:
> 
> --- make ---
>    (...)
>    AR      util-linux/volume_id/lib.a
>    LINK    busybox_unstripped
> Trying libraries: crypt m
>   Library crypt is needed
>   Library m is needed
> Final link with: crypt m
> arm-uclinuxeabi-strip: busybox_unstripped: File format not recognized
> make: ** [busybox] Erro 1

Wow, your "strip" doesn't recognize the binary! :)

Well, you can just "cp busybox_unstripped busybox" and use
unstripped binary.

What these command say? (Example is from my x86 machine):

# file busybox_unstripped
busybox_unstripped: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), 
statically linked, not stripped
# readelf -h busybox_unstripped
ELF Header:
  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           Intel 80386
  Version:                           0x1
  Entry point address:               0x80480b0
  Start of program headers:          52 (bytes into file)
  Start of section headers:          824056 (bytes into file)
  Flags:                             0x0
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         3
  Size of section headers:           40 (bytes)
  Number of section headers:         24
  Section header string table index: 21

--
vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to