Fix addr2line test for ppc64 elfv1 and mingw
authorAlan Modra <amodra@gmail.com>
Wed, 19 Oct 2022 08:22:43 +0000 (18:52 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 19 Oct 2022 11:53:53 +0000 (22:23 +1030)
commit2b06e59de0675c2cb526af2de6803dae29703d15
tree22d5051221ca00d3881d61e14385368123d12a5c
parentf2ba47d69ea5f0b7c16b9373b0c4c8942c7252aa
Fix addr2line test for ppc64 elfv1 and mingw

* testsuite/binutils-all/addr2line.exp: Tidy.  For powerpc64
arrange to pass --synthetic to nm, and extract .main and .fn
symbol address for addr2line test.  Handle default executable
extension on cygwin/mingw compilers.
binutils/testsuite/binutils-all/addr2line.exp