[uClibc]simple printf does not work........
Visakan Pirabusikamani
visakan at mediasolv.com
Tue Apr 2 11:15:44 UTC 2002
Hello every body..
I am currently in the migration to new uClibc with uClinux-2.0.38 (pre 7).
The uClibc is compiled and installed without any problem..
but a small prgram just to print A would hang the system..
when I execute the binary to our targe platform(ATMEL EB63) it hangs......,
without any output.
I compare the stripped binries and attached to you all for the reference..
I am not sure why the new uclibc does not hv the add
the new uclibc is compiled with the flags:
-Wall
-Os
-falign-functions=1
-fstrict-aliasing
-fno-builtin
-nostdinc
-pipe
-nostdinc
-D_LIBC
-DNDEBUG
-c -o
********************** OLD uC-libc worked fine ***************
[root at visakan uC-libc]# arm-uclinux-objdump -d my.o
my.o: file format elf32-littlearm
Disassembly of section .text:
00000000 <main>:
0: e59f0010 ldr r0, [pc, #10] ; 18 <main+0x18>
4: e0890000 add r0, r9, r0
8: e52de004 str lr, [sp, -#4]!
c: ebfffffe bl c <main+0xc>
10: e3a00000 mov r0, #0 ; 0x0
14: e49df004 ldr pc, [sp], #4
18: 00000000 andeq r0, r0, r0
*********************************************************************
************** NEW uclibc does not work ************************
[root at visakan uC-libcn]# arm-uclinux-objdump -d my.o
my.o: file format elf32-littlearm
Disassembly of section .text:
00000000 <main>:
0: e59f000c ldr r0, [pc, #c] ; 14 <main+0x14>
4: e52de004 str lr, [sp, -#4]!
8: ebfffffe bl 8 <main+0x8>
c: e3a00000 mov r0, #0 ; 0x0
10: e49df004 ldr pc, [sp], #4
14: 00000000 andeq r0, r0, r0
*********************************************************************
Please anybody encounterd the same problem?
why the new uclibc does not have the line "add r0 r9 r0" ?
Is that the reason to hang the system??
Cheers
VisakanP
--
Pirabusikamani Visakan,
Jr System Administrator,
MediaSolv.Inc,
10, Alfred house Garden,
Colombo 4,
Sri Lanka.
More information about the uClibc
mailing list