Trying to cross compile with uClibc, no sucess!
Takaite Takehara
takaite at leucotron.com.br
Thu May 6 18:54:26 UTC 2010
Tks, Thierry for your help.
I made it and got it:
Elf file type is EXEC (Executable file)
Entry point 0x8048374
There are 6 program headers, starting at offset 52
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg
Align
PHDR 0x000034 0x08048034 0x08048034 0x000c0 0x000c0 R E 0x4
INTERP 0x0000f4 0x080480f4 0x080480f4 0x00014 0x00014 R 0x1
[Requesting program interpreter: /lib/ld-uClibc.so.0]
LOAD 0x000000 0x08048000 0x08048000 0x00554 0x00554 R E
0x1000
LOAD 0x000554 0x08049554 0x08049554 0x000f4 0x00114 RW
0x1000
DYNAMIC 0x000568 0x08049568 0x08049568 0x000b8 0x000b8 RW 0x4
GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4
Section to Segment mapping:
Segment Sections...
00
01 .interp
02 .interp .hash .dynsym .dynstr .gnu.version .gnu.version_r
.rel.plt .init .plt .text .fini .rodata .eh_frame
03 .ctors .dtors .jcr .dynamic .got.plt .data .bss
04 .dynamic
05
Then I copied the files inside my toolchain to the place requested then
I got this error:
can't handle reloc type 0xe in lib '/lib/libc.so.6'
Can you help me one more time?
One question: Where do I change the path of the program interpreter?
Best Regards
Taka
Thierry Reding escreveu:
* Takaite Takehara wrote:
Hi guys;
I'm quite sure that somebody already ask this, but I could not find in
the mail list search.
I'll work with a MIPS platform and want to use uClibc. To improve my
development, I want to test in my PC and then cross-compile to MIPS and
test again.
Using the GLib every thing goes ok (a "Hello Word" program). When I
build with the toolchain for x86 everything goes ok but when I try to
run the application I got de message
takaite at takaite-virtualbox:~/embedded/312S01 - Firmware Media
Gateway/editor/312S01/dist/Debug/i586-linux-uClibc-Linux-x86$ ./312s01
bash: ./312s01: No such file or directory
What I'm doing wrong? I tried the compiled packet x86 from uclibc.org
and with a compiled version made by me my using buildroot!
Somebody can help me?
Perhaps the uClibc ELF loader is not in the correct location. Try running
'readelf -l' on your binary and look for the line that says something like
"Requesting program interpreter:". That file needs to exist or you won't be
able to run the binary.
Thierry
More information about the uClibc
mailing list