Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 4634] New: Bigendian binary is output even if it is configured to output little endian
@ 2011-12-18  5:28 bugzilla at busybox.net
  2011-12-18 13:33 ` Michael S. Zick
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2011-12-18  5:28 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=4634

           Summary: Bigendian binary is output even if it is configured to
                    output little endian
           Product: buildroot
           Version: 2011.11
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: Other
        AssignedTo: unassigned at buildroot.uclibc.org
        ReportedBy: matusita at k-micro.com
                CC: buildroot at uclibc.org
   Estimated Hours: 0.0


I set build options as below in "make menuconfig" to build root filesystem:
  Target Architecture (mipsel)
  Target Architecture Variant (mips 32r2)
  Toolcain-Toolchain type (External toolchain)
  Toolcain-Toolchain (CodeSourcery MIPS 2011.03)

I expected that little enfian binary will be output because "mipsel" is
selected. But it was big endian.
I confirmed it by objdump with "-f" option like below.

  % mips-linux-gnu-objdump -f busybox
    busybox:     file format elf32-tradbigmips      <-- Big endian !!!
    architecture: mips:isa32r2, flags 0x00000112:
    EXEC_P, HAS_SYMS, D_PAGED
    start address 0x00403f00

So, I saw following file:
  toolchain/toolchain-external/ext-tool.mk

And I understand that this script get libraries' location by calling
(prefix)-gcc with following options:
  -print-sysroot
  -print-file-name=libc.a

But as for this toolchain(CodeSourcery MIPS 2011.03), it is need to set "-EL"
option as well to get correct location of little endian libraries.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-02-17  9:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-18  5:28 [Buildroot] [Bug 4634] New: Bigendian binary is output even if it is configured to output little endian bugzilla at busybox.net
2011-12-18 13:33 ` Michael S. Zick
2011-12-18 13:53   ` Michael S. Zick
2012-01-31 19:46 ` [Buildroot] [Bug 4634] " bugzilla at busybox.net
2012-02-17  9:37 ` bugzilla at busybox.net
2012-02-17  9:42 ` bugzilla at busybox.net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox