aboutsummaryrefslogtreecommitdiff
path: root/packages/binutils/2.43.1/0008-gold-Deal-with-absence-of-uchar-on-macOS.patch
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2024-08-22 13:17:30 +1200
committerChris Packham <judge.packham@gmail.com>2024-08-30 09:53:47 +1200
commit8105791c34a4e48433facbac556e7aedb114caed (patch)
treee7d245858fdc547d4147b6659f06c056e605fe64 /packages/binutils/2.43.1/0008-gold-Deal-with-absence-of-uchar-on-macOS.patch
parent146fee59bc52ad123b0f0d243aee8ead4c7af26a (diff)
downloadcrosstool-ng-8105791c34a4e48433facbac556e7aedb114caed.tar.gz
crosstool-ng-8105791c34a4e48433facbac556e7aedb114caed.tar.bz2
crosstool-ng-8105791c34a4e48433facbac556e7aedb114caed.zip
binutils: Add 2.43.1
https://sourceware.org/pipermail/binutils/2024-August/136396.html Add the new version rebasing the patches we carry on top. Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'packages/binutils/2.43.1/0008-gold-Deal-with-absence-of-uchar-on-macOS.patch')
-rw-r--r--packages/binutils/2.43.1/0008-gold-Deal-with-absence-of-uchar-on-macOS.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/packages/binutils/2.43.1/0008-gold-Deal-with-absence-of-uchar-on-macOS.patch b/packages/binutils/2.43.1/0008-gold-Deal-with-absence-of-uchar-on-macOS.patch
new file mode 100644
index 00000000..011c80c6
--- /dev/null
+++ b/packages/binutils/2.43.1/0008-gold-Deal-with-absence-of-uchar-on-macOS.patch
@@ -0,0 +1,35 @@
+From 5e16cd42ed6c0b626ee47601396517ddb8a6065f Mon Sep 17 00:00:00 2001
+From: Bryan Hundven <bryanhundven@gmail.com>
+Date: Tue, 6 Feb 2024 16:34:38 +1300
+Subject: [PATCH 8/8] gold: Deal with absence of <uchar> on macOS
+
+Add code to provide fallback definitions of char16_t/char32_t on macOS.
+---
+ gold/output.cc | 2 ++
+ gold/stringpool.cc | 2 ++
+ 2 files changed, 4 insertions(+)
+
+--- a/gold/output.cc
++++ b/gold/output.cc
+@@ -29,7 +29,9 @@
+ #include <unistd.h>
+ #include <sys/stat.h>
+ #include <algorithm>
++#if !defined(__APPLE__)
+ #include <uchar.h>
++#endif
+
+ #ifdef HAVE_SYS_MMAN_H
+ #include <sys/mman.h>
+--- a/gold/stringpool.cc
++++ b/gold/stringpool.cc
+@@ -25,7 +25,9 @@
+ #include <cstring>
+ #include <algorithm>
+ #include <vector>
++#if !defined(__APPLE__)
+ #include <uchar.h>
++#endif
+
+ #include "output.h"
+ #include "parameters.h"