summaryrefslogtreecommitdiff
path: root/system/binutils/ppc64-abiv2-addr2line.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/binutils/ppc64-abiv2-addr2line.patch')
-rw-r--r--system/binutils/ppc64-abiv2-addr2line.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/system/binutils/ppc64-abiv2-addr2line.patch b/system/binutils/ppc64-abiv2-addr2line.patch
new file mode 100644
index 000000000..e3cb4d73d
--- /dev/null
+++ b/system/binutils/ppc64-abiv2-addr2line.patch
@@ -0,0 +1,15 @@
+musl libc uses the same ELFv2 ABI on both endians of PowerPC64.
+
+Upstream-URL: https://sourceware.org/bugzilla/show_bug.cgi?id=30916
+
+--- binutils-2.41/binutils/testsuite/binutils-all/addr2line.exp.old 2023-07-02 18:00:00.000000000 -0500
++++ binutils-2.41/binutils/testsuite/binutils-all/addr2line.exp 2023-09-22 20:44:37.242158767 -0500
+@@ -20,7 +20,7 @@
+ set exe [exeext]
+
+ # powerpc64 function symbols are on descriptors rather than code.
+-if [istarget powerpc64-*-*] {
++if { [istarget powerpc64-*-*] && ![istarget powerpc64-*-musl] } {
+ set opts --synthetic
+ set dot {\.}
+ }