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.
This commit is contained in:
A. Wilcox 2023-10-05 14:49:51 +01:00 committed by Nick Clifton
parent 8838ac1c9e
commit c4e0d285cf
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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 {\.}
}