]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Wrong ELF class plugin vs. gcc ld version
authorAlan Modra <amodra@gmail.com>
Thu, 18 Feb 2021 04:13:14 +0000 (14:43 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 19 Feb 2021 03:19:15 +0000 (13:49 +1030)
commit2f973f134d7752cbc662ec65da8ad8bbe4c6fb8f
tree43eca27a7a11557b325be3d06291acb72fcf8fb1
parent0be51eb4c363bea9a550392bf58c0e497403fff2
Wrong ELF class plugin vs. gcc ld version

When building 32-bit binutils with CC="gcc -m32" CXX="g++ -m32" we can
fail the gcc ld version test due to an error attempting to load a
64-bit plugin into 32-bit ld-new.  This results in bogus errors about
"Your compiler driver ignores -B when choosing ld."

* testsuite/lib/ld-lib.exp: Whitespace.
(load_common_lib): Expand single use and delete this proc.
(run_host_cmd): Use -fno-lto when getting gcc's ld version.
Use -B for clang too.
ld/ChangeLog
ld/testsuite/lib/ld-lib.exp