All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 9016] New: arceb-buildroot-linux-uclibc ld uses incorrect default format
@ 2016-06-17 14:58 bugzilla at busybox.net
  2016-07-28 19:14 ` [Buildroot] [Bug 9016] " bugzilla at busybox.net
  2016-07-28 20:21 ` bugzilla at busybox.net
  0 siblings, 2 replies; 3+ messages in thread
From: bugzilla at busybox.net @ 2016-06-17 14:58 UTC (permalink / raw)
  To: buildroot

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

            Bug ID: 9016
           Summary: arceb-buildroot-linux-uclibc ld uses incorrect default
                    format
           Product: buildroot
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at buildroot.uclibc.org
          Reporter: uwe at hermann-uwe.de
                CC: buildroot at uclibc.org
  Target Milestone: ---

With the arceb-buildroot-linux-uclibc toolchain you can get issues like this
when compiling certain files/libs:

~/buildroot-arceb-buildroot-linux-uclibc/output/host/usr/arceb-buildroot-linux-uclibc/bin/ld:
ERROR: Endian Match failed. Attempting to link blah.a(foo.o) with binary baz.o
of opposite endian-ness


The reason seems to be that "ld" uses the incorrect default output format.
Adding "-BE" would probably fix it, but IMHO it's a bug already that the
default is not set to BE (but please correct me if I'm wrong).


ARC, little endian, correct default:
~/buildroot-arc-buildroot-linux-uclibc/output/host/usr/arc-buildroot-linux-uclibc/bin/ld
--print-output-format
elf32-littlearc

ARC, big endian, WRONG default (should be "elf32-bigarc"):
~/buildroot-arceb-buildroot-linux-uclibc/output/host/usr/arceb-buildroot-linux-uclibc/bin/ld
--print-output-format
elf32-littlearc


For comparison, here's another LE/BE toolchain example where this is handled
correctly:

AARCH64, little endian, correct default:
~/buildroot-aarch64-buildroot-linux-gnu/output/host/usr/aarch64-buildroot-linux-gnu/bin/ld
--print-output-format
elf64-littleaarch64

AARCH64, big endian, correct default:
~/buildroot-aarch64_be-buildroot-linux-gnu/output/host/usr/aarch64_be-buildroot-linux-gnu/bin/ld
--print-output-format
elf64-bigaarch64

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Buildroot] [Bug 9016] arceb-buildroot-linux-uclibc ld uses incorrect default format
  2016-06-17 14:58 [Buildroot] [Bug 9016] New: arceb-buildroot-linux-uclibc ld uses incorrect default format bugzilla at busybox.net
@ 2016-07-28 19:14 ` bugzilla at busybox.net
  2016-07-28 20:21 ` bugzilla at busybox.net
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla at busybox.net @ 2016-07-28 19:14 UTC (permalink / raw)
  To: buildroot

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

--- Comment #1 from Vlad Zakharov <Vladislav.Zakharov@synopsys.com> ---
Hi, 

I built toolchain in buildroot, tried to run your examples and got the
following results:
--------------------->8-------------------
.../arceb-buildroot-linux-uclibc/bin/ld --print-output-format
elf32-bigarc
--------------------->8-------------------

Please provide more about conditions under which the failure occurred, e.g.
what toochain version and git revision were used.
That would help us to catch and fix the issue.

Thanks,
Vlad.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Buildroot] [Bug 9016] arceb-buildroot-linux-uclibc ld uses incorrect default format
  2016-06-17 14:58 [Buildroot] [Bug 9016] New: arceb-buildroot-linux-uclibc ld uses incorrect default format bugzilla at busybox.net
  2016-07-28 19:14 ` [Buildroot] [Bug 9016] " bugzilla at busybox.net
@ 2016-07-28 20:21 ` bugzilla at busybox.net
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla at busybox.net @ 2016-07-28 20:21 UTC (permalink / raw)
  To: buildroot

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

Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2016-07-28 20:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-17 14:58 [Buildroot] [Bug 9016] New: arceb-buildroot-linux-uclibc ld uses incorrect default format bugzilla at busybox.net
2016-07-28 19:14 ` [Buildroot] [Bug 9016] " bugzilla at busybox.net
2016-07-28 20:21 ` bugzilla at busybox.net

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.