From c4e0d285cfccc6c7d90c34441cbe52a4c471e4c0 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 5 Oct 2023 14:49:51 +0100 Subject: 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. --- binutils/ChangeLog | 6 ++++++ binutils/testsuite/binutils-all/addr2line.exp | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'binutils') 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 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 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 {\.} } -- cgit v1.1