]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
PowerPC: incorrect library search order
authorAlan Modra <amodra@gmail.com>
Wed, 17 May 2017 23:38:55 +0000 (09:08 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 17 May 2017 23:38:55 +0000 (09:08 +0930)
commit1a94bb85e273197fb609b79cc2e3705287c86966
tree1006805b18dd4800a4789abdeafee8b654aed5c0
parent1663acb165d6f3f17a21750e1b1140005d5a25f0
PowerPC: incorrect library search order

First, need to match against just the CPU name, not the whole triplet.
Otherwise, the test picks up "*le-*" pattern from x86_64-apple-darwin
triplet.

Second, it should be testing for $target, not $host. Host may be
little endian by default, and the sysroot directory layout shouldn't
depend on whether it is built on LE or BE machine.

* emulparams/elf32ppccommon.sh (LIBPATH_SUFFIX): Set from target
cpu, not host.
ld/ChangeLog
ld/emulparams/elf32ppccommon.sh