* [Buildroot] MSB vs LSB mips library files
@ 2009-07-02 13:40 jing han
2009-07-02 15:34 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: jing han @ 2009-07-02 13:40 UTC (permalink / raw)
To: buildroot
Hello,
I downloaded buildroot-2009.05.tar.gz and built a mips32r2, o32 environment in my machine (fedora core 5 2.6.15-1.2054_FC5).
After the make is finished, I checked through the mips files in my mips environment, I found that all the files in buildroot-2009.05/build_mips/staging_dir/usr/bin/* directory are LSB files, all the library files in buildroot-2009.05/build_mips/staging_dir/usr/lib/* directory are MSB files, which
supprise me a lot and I don't want.
I compiled a simple program with mips-linux-gcc which only print "Hello World", the result of "file a.out" is as follows:
a.out: ELF 32-bit MSB executable, MIPS, MIPS64 version 1 (SYSV), dynamically linked (uses shared libs), not stripped
I don't want MSB executables, I want LSB executables. Can you tell me why I have MSB mips library files? What can I do in order to have LSB mips library files and to make my mips executables LSB files?
Could you tell me which option I could choose in order to avoid MSB library files?
Thank you in advance and I'm looking forward to hearing from you soon.
Best Regards
jing
__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!
http://www.flickr.com/gift/
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] MSB vs LSB mips library files
2009-07-02 13:40 [Buildroot] MSB vs LSB mips library files jing han
@ 2009-07-02 15:34 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2009-07-02 15:34 UTC (permalink / raw)
To: buildroot
Le Thu, 2 Jul 2009 06:40:15 -0700 (PDT),
jing han <jing_han_66@yahoo.com> a ?crit :
> After the make is finished, I checked through the mips files in my
> mips environment, I found that all the files in
> buildroot-2009.05/build_mips/staging_dir/usr/bin/* directory are LSB
> files, all the library files in
> buildroot-2009.05/build_mips/staging_dir/usr/lib/* directory are MSB
> files, which supprise me a lot and I don't want.
Some of the files in build_mips/staging_dir/usr/bin/ are the
cross-compiler and other cross-compilation tools. So they are compiled
for x86 and generate code for MIPS. Or can you provide an example of a
binary in this directory that is LSB, but not for x86 ?
In build_mips/staging_dir/usr/lib/, are the libraries compiled to run
on the target, so compiled for the MIPS architecture.
> Could you tell me which option I could choose in order to avoid MSB
> library files?
Use mipsel instead of mips ?
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-02 15:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-02 13:40 [Buildroot] MSB vs LSB mips library files jing han
2009-07-02 15:34 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox