aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Giulio Benetti <giulio.benetti@benettiengineering.com>2021-03-05 17:12:09 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2021-03-14 22:33:09 +0100
commit227cefef41f4edd4eaae3c2068fb41d236370f29 (patch)
tree092bc33eb3b8fc2b522e3400b38d5ffa14bc7ea8
parenta3e0c045e498afce4b11325710945ab0e1b610f4 (diff)
downloadbuildroot-227cefef41f4edd4eaae3c2068fb41d236370f29.tar.gz
buildroot-227cefef41f4edd4eaae3c2068fb41d236370f29.tar.bz2
toolchain: introduce BR2_TOOLCHAIN_HAS_BINUTILS_BUG_21464
The OpenRISC binutils is affected by a linker bug (binutils bug 21464) for which no workaround exists. This causes build breakage in a number of packages, so this commit introduces a BR2_TOOLCHAIN_HAS_BINUTILS_BUG_21464 option to identify this bug. As all binutils versions are affected, this option is true whenever the configuration targets OpenRISC. The bug was already reported and it's been recently updated: https://sourceware.org/bugzilla/show_bug.cgi?id=21464 Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--toolchain/Config.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/toolchain/Config.in b/toolchain/Config.in
index ff1391beda..f3f9bbe641 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -81,6 +81,12 @@ config BR2_TOOLCHAIN_HAS_BINUTILS_BUG_19615
config BR2_TOOLCHAIN_HAS_BINUTILS_BUG_20006
bool
+# https://sourceware.org/bugzilla/show_bug.cgi?id=21464
+# Affect toolchains built with binutils 2.31.1, still not fixed.
+config BR2_TOOLCHAIN_HAS_BINUTILS_BUG_21464
+ bool
+ default y if BR2_or1k
+
# Atomic types can be:
# - never lock-free
# - sometimes lock-free