From: A. Wilcox Date: Thu, 5 Oct 2023 13:49:51 +0000 (+0100) Subject: Fix: addr2line testsuite fails when targeting PowerPC 64 big-endian with ELFv2 ABI X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c4e0d285cfccc6c7d90c34441cbe52a4c471e4c0;p=binutils-gdb.git 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. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index dbb5e8d094a..4d187bda5d8 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 82a29d5e4e4..908090a7b44 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 {\.} }