uclibc xscale-big-endian binaries not recognized
Trasti, Jennifer
jtrasti at sandia.gov
Thu Apr 12 01:17:56 UTC 2007
Apologies if this is the wrong list.
It seems my xscale big-endian does not recognize binaries compiled by uclibc as made with the buildroot toolchain.
i.e.
helloworld.c compiles without complaint to:
$ file hello
hello: ELF 32-bit MSB executable, ARM, version 1 (ARM), dynamically linked (uses shared libs), not stripped
When I put this on the xscale machine (which is happily running other things compiled without uclibc), I get:
sh: ./hello: No such file or directory
The permissions are set correctly.
I'm building on a Fedora core 6 machine
buildroot-20070316
armeb, xscale
linux kernel headers 2.4.31
uclibc 9.28.3
binutils 2.17
gcc 4.0.4
I have this combination as it is the first setup that would compile buildroot for
armeb-xscale. Getting buildroot to build was quite painful. Can anyone tip me off as
to why this all compiles fine and still doesn't work? Is armeb something unique to Debian
and I've fooled it into compiling on Fedora?
Below is the beginning, end, and some readable text from the executable of helloworld.c,
in case it helps the much-wiser to decipher this.
00000000 7f 45 4c 46 01 02 01 61 00 00 00 00 00 00 00 00 |.ELF...a........|
00000010 00 02 00 28 00 00 00 01 00 00 84 38 00 00 00 34 |...(.......8...4|
00000020 00 00 08 4c 00 00 00 02 00 34 00 20 00 05 00 28 |...L.....4. ...(|
00000030 00 1a 00 17 00 00 00 06 00 00 00 34 00 00 80 34 |...........4...4|
00000040 00 00 80 34 00 00 00 a0 00 00 00 a0 00 00 00 05 |...4............|
00000050 00 00 00 04 00 00 00 03 00 00 00 d4 00 00 80 d4 |................|
00000060 00 00 80 d4 00 00 00 14 00 00 00 14 00 00 00 04 |................|
00000070 00 00 00 01 00 00 00 01 00 00 00 00 00 00 80 00 |................|
00000080 00 00 80 00 00 00 05 e0 00 00 05 e0 00 00 00 05 |................|
00000090 00 00 80 00 00 00 00 01 00 00 05 e0 00 01 05 e0 |................|
000000a0 00 01 05 e0 00 00 01 18 00 00 01 34 00 00 00 06 |...........4....|
000000b0 00 00 80 00 00 00 00 02 00 00 05 f4 00 01 05 f4 |................|
000000c0 00 01 05 f4 00 00 00 d0 00 00 00 d0 00 00 00 06 |................|
000000d0 00 00 00 04 2f 6c 69 62 2f 6c 64 2d 75 43 6c 69 |..../lib/ld-uCli|
000000e0 62 63 2e 73 6f 2e 30 00 00 00 00 11 00 00 00 12 |bc.so.0.........|
000000f0 00 00 00 00 00 00 00 0d 00 00 00 05 00 00 00 11 |................|
000006e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000006f0 00 00 00 00 00 01 05 ec 00 47 43 43 3a 20 28 47 |.........GCC: (G|
00000700 4e 55 29 20 33 2e 33 2e 32 20 32 30 30 33 31 30 |NU) 3.3.2 200310|
00000710 30 35 20 28 44 65 62 69 61 6e 20 70 72 65 72 65 |05 (Debian prere|
00000720 6c 65 61 73 65 29 00 00 47 43 43 3a 20 28 47 4e |lease)..GCC: (GN|
00000730 55 29 20 34 2e 30 2e 34 00 00 47 43 43 3a 20 28 |U) 4.0.4..GCC: (|
00000740 47 4e 55 29 20 34 2e 30 2e 34 00 00 47 43 43 3a |GNU) 4.0.4..GCC:|
00000750 20 28 47 4e 55 29 20 34 2e 30 2e 34 00 00 47 43 | (GNU) 4.0.4..GC|
00000760 43 3a 20 28 47 4e 55 29 20 33 2e 33 2e 32 20 32 |C: (GNU) 3.3.2 2|
00000770 30 30 33 31 30 30 35 20 28 44 65 62 69 61 6e 20 |0031005 (Debian |
00000780 70 72 65 72 65 6c 65 61 73 65 29 00 00 2e 73 79 |prerelease)...sy|
00000790 6d 74 61 62 00 2e 73 74 72 74 61 62 00 2e 73 68 |mtab..strtab..sh|
000007a0 73 74 72 74 61 62 00 2e 69 6e 74 65 72 70 00 2e |strtab..interp..|
000007b0 68 61 73 68 00 2e 64 79 6e 73 79 6d 00 2e 64 79 |hash..dynsym..dy|
000007c0 6e 73 74 72 00 2e 67 6e 75 2e 76 65 72 73 69 6f |nstr..gnu.versio|
000007d0 6e 00 2e 67 6e 75 2e 76 65 72 73 69 6f 6e 5f 72 |n..gnu.version_r|
000007e0 00 2e 72 65 6c 2e 64 79 6e 00 2e 72 65 6c 2e 70 |..rel.dyn..rel.p|
000007f0 6c 74 00 2e 69 6e 69 74 00 2e 74 65 78 74 00 2e |lt..init..text..|
00000800 66 69 6e 69 00 2e 72 6f 64 61 74 61 00 2e 65 68 |fini..rodata..eh|
00000810 5f 66 72 61 6d 65 00 2e 63 74 6f 72 73 00 2e 64 |_frame..ctors..d|
00000820 74 6f 72 73 00 2e 6a 63 72 00 2e 64 79 6e 61 6d |tors..jcr..dynam|
00000830 69 63 00 2e 67 6f 74 00 2e 64 61 74 61 00 2e 62 |ic..got..data..b|
00000840 73 73 00 2e 63 6f 6d 6d 65 6e 74 00 00 00 00 00 |ss..comment.....|
00000850 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00001210 00 00 00 00 00 00 00 00 20 00 00 00 00 63 72 74 |........ ....crt|
00001220 31 2e 53 00 69 6e 69 74 66 69 6e 69 2e 63 00 63 |1.S.initfini.c.c|
00001230 72 74 69 2e 53 00 24 61 00 63 72 74 73 74 75 66 |rti.S.$a.crtstuf|
00001240 66 2e 63 00 5f 5f 43 54 4f 52 5f 4c 49 53 54 5f |f.c.__CTOR_LIST_|
00001250 5f 00 24 64 00 5f 5f 44 54 4f 52 5f 4c 49 53 54 |_.$d.__DTOR_LIST|
00001260 5f 5f 00 5f 5f 45 48 5f 46 52 41 4d 45 5f 42 45 |__.__EH_FRAME_BE|
00001270 47 49 4e 5f 5f 00 5f 5f 4a 43 52 5f 4c 49 53 54 |GIN__.__JCR_LIST|
00001280 5f 5f 00 63 6f 6d 70 6c 65 74 65 64 2e 31 36 33 |__.completed.163|
00001290 37 00 70 2e 31 36 33 36 00 5f 5f 64 6f 5f 67 6c |7.p.1636.__do_gl|
000012a0 6f 62 61 6c 5f 64 74 6f 72 73 5f 61 75 78 00 63 |obal_dtors_aux.c|
000012b0 61 6c 6c 5f 5f 5f 64 6f 5f 67 6c 6f 62 61 6c 5f |all___do_global_|
000012c0 64 74 6f 72 73 5f 61 75 78 00 6f 62 6a 65 63 74 |dtors_aux.object|
000012d0 2e 31 36 36 39 00 66 72 61 6d 65 5f 64 75 6d 6d |.1669.frame_dumm|
000012e0 79 00 63 61 6c 6c 5f 66 72 61 6d 65 5f 64 75 6d |y.call_frame_dum|
000012f0 6d 79 00 5f 5f 43 54 4f 52 5f 45 4e 44 5f 5f 00 |my.__CTOR_END__.|
00001300 5f 5f 44 54 4f 52 5f 45 4e 44 5f 5f 00 5f 5f 46 |__DTOR_END__.__F|
00001310 52 41 4d 45 5f 45 4e 44 5f 5f 00 5f 5f 4a 43 52 |RAME_END__.__JCR|
00001320 5f 45 4e 44 5f 5f 00 5f 5f 64 6f 5f 67 6c 6f 62 |_END__.__do_glob|
00001330 61 6c 5f 63 74 6f 72 73 5f 61 75 78 00 63 61 6c |al_ctors_aux.cal|
00001340 6c 5f 5f 5f 64 6f 5f 67 6c 6f 62 61 6c 5f 63 74 |l___do_global_ct|
00001350 6f 72 73 5f 61 75 78 00 63 72 74 6e 2e 53 00 68 |ors_aux.crtn.S.h|
00001360 65 6c 6c 6f 2e 63 00 5f 44 59 4e 41 4d 49 43 00 |ello.c._DYNAMIC.|
00001370 5f 47 4c 4f 42 41 4c 5f 4f 46 46 53 45 54 5f 54 |_GLOBAL_OFFSET_T|
00001380 41 42 4c 45 5f 00 5f 62 73 73 5f 65 6e 64 5f 5f |ABLE_._bss_end__|
00001390 00 70 75 74 73 00 5f 5f 62 73 73 5f 73 74 61 72 |.puts.__bss_star|
000013a0 74 5f 5f 00 5f 5f 64 73 6f 5f 68 61 6e 64 6c 65 |t__.__dso_handle|
000013b0 00 5f 69 6e 69 74 00 5f 5f 64 65 72 65 67 69 73 |._init.__deregis|
000013c0 74 65 72 5f 66 72 61 6d 65 5f 69 6e 66 6f 40 40 |ter_frame_info@@|
000013d0 47 43 43 5f 33 2e 30 00 5f 5f 62 73 73 5f 65 6e |GCC_3.0.__bss_en|
000013e0 64 5f 5f 00 5f 73 74 61 72 74 00 5f 5f 75 43 6c |d__._start.__uCl|
000013f0 69 62 63 5f 6d 61 69 6e 00 5f 5f 62 73 73 5f 73 |ibc_main.__bss_s|
00001400 74 61 72 74 00 6d 61 69 6e 00 5f 5f 65 6e 64 5f |tart.main.__end_|
00001410 5f 00 64 61 74 61 5f 73 74 61 72 74 00 5f 66 69 |_.data_start._fi|
00001420 6e 69 00 5f 65 64 61 74 61 00 5f 65 6e 64 00 5f |ni._edata._end._|
00001430 5f 72 65 67 69 73 74 65 72 5f 66 72 61 6d 65 5f |_register_frame_|
00001440 69 6e 66 6f 40 40 47 43 43 5f 33 2e 30 00 5f 5f |info@@GCC_3.0.__|
00001450 64 61 74 61 5f 73 74 61 72 74 00 5f 4a 76 5f 52 |data_start._Jv_R|
00001460 65 67 69 73 74 65 72 43 6c 61 73 73 65 73 00 |egisterClasses.|
0000146f
thanks
--jl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20070411/f0a4824b/attachment-0002.htm
More information about the uClibc
mailing list