aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorA. Wilcox <awilfox@adelielinux.org>2023-10-05 14:49:51 +0100
committerNick Clifton <nickc@redhat.com>2023-10-05 14:49:51 +0100
commitc4e0d285cfccc6c7d90c34441cbe52a4c471e4c0 (patch)
tree64fa087d11677eda0322fecbc87d078c7a9ab17f /binutils
parent8838ac1c9e05baa269fb50ebaa3318925b4df55b (diff)
downloadgdb-c4e0d285cfccc6c7d90c34441cbe52a4c471e4c0.zip
gdb-c4e0d285cfccc6c7d90c34441cbe52a4c471e4c0.tar.gz
gdb-c4e0d285cfccc6c7d90c34441cbe52a4c471e4c0.tar.bz2
Fix: addr2line testsuite fails when targeting PowerPC 64 big-endian with ELFv2 ABI
PR 30916 * testsuite/binutils-all/addr2line.exp: Do not use PowerPC specific options when working with a MUSL target.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog6
-rw-r--r--binutils/testsuite/binutils-all/addr2line.exp3
2 files changed, 8 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index dbb5e8d..4d187bd 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,9 @@
+2023-10-05 A. Wilcox <awilfox@adelielinux.org>w
+
+ PR 30916
+ * testsuite/binutils-all/addr2line.exp: Do not use PowerPC
+ specific options when working with a MUSL target.
+
2023-10-02 Vsevolod Alekseyev <sevaa@sprynet.com>
PR 29267
diff --git a/binutils/testsuite/binutils-all/addr2line.exp b/binutils/testsuite/binutils-all/addr2line.exp
index 82a29d5..908090a 100644
--- a/binutils/testsuite/binutils-all/addr2line.exp
+++ b/binutils/testsuite/binutils-all/addr2line.exp
@@ -20,7 +20,8 @@ set dot ""
set exe [exeext]
# powerpc64 function symbols are on descriptors rather than code.
-if [istarget powerpc64-*-*] {
+# MUSL uses the ELFv2 ABI for PowerPC, so the problem does not apply there.
+if { [istarget powerpc64-*-*] && ![istarget powerpc64-*-musl] } {
set opts --synthetic
set dot {\.}
}