From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] package/binutils: Disable -Os for ARM cortex-M cpus
Date: Mon, 5 Sep 2016 21:48:18 +0200 [thread overview]
Message-ID: <20160905214818.5a7fd3fd@free-electrons.com> (raw)
In-Reply-To: <1472998440-7543-1-git-send-email-romain.naour@gmail.com>
Hello,
On Sun, 4 Sep 2016 16:14:00 +0200, Romain Naour wrote:
> ERROR: reloc type R_ARM_THM_MOVW_ABS_NC unsupported in this context
> ERROR: reloc type R_ARM_THM_MOVT_ABS unsupported in this context
> 2 bad relocscollect2: error: ld returned 1 exit status
>
> Binutils build fine with -O1, -O2 or -O3.
>
> Reported upstream:
> https://sourceware.org/bugzilla/show_bug.cgi?id=20552
>
> Fixes:
> http://autobuild.buildroot.net/results/e72/e727e6e9cf361acc786acec192a88f5f5444a2f6
>
> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> v2: fix condition (ThomasP)
> report the issue upstream (ThomasP)
> use O2 instead of O1 (Baruch)
> ---
> package/binutils/binutils.mk | 7 +++++++
> 1 file changed, 7 insertions(+)
Applied to master, thanks. Of course, once we get the feedback from
Nicholas Walton, we might re-adjust this fix.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
prev parent reply other threads:[~2016-09-05 19:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-04 14:14 [Buildroot] [PATCH v2] package/binutils: Disable -Os for ARM cortex-M cpus Romain Naour
2016-09-05 19:48 ` Thomas Petazzoni [this message]
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=20160905214818.5a7fd3fd@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--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