From: bugzilla at busybox.net <bugzilla@busybox.net>
To: buildroot@busybox.net
Subject: [Buildroot] [Bug 9016] New: arceb-buildroot-linux-uclibc ld uses incorrect default format
Date: Fri, 17 Jun 2016 14:58:40 +0000 [thread overview]
Message-ID: <bug-9016-163@https.bugs.busybox.net/> (raw)
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.
next reply other threads:[~2016-06-17 14:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-17 14:58 bugzilla at busybox.net [this message]
2016-07-28 19:14 ` [Buildroot] [Bug 9016] arceb-buildroot-linux-uclibc ld uses incorrect default format bugzilla at busybox.net
2016-07-28 20:21 ` bugzilla at busybox.net
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-9016-163@https.bugs.busybox.net/ \
--to=bugzilla@busybox.net \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox