Hi, Clang driver considers lib32 directory as a usual folder with 32-bit binaries. That is not correct for MIPS where this directory contains N32 ABI binaries. N32 is a minor variation on the high performance 64-bit ABI and is not used to compile 32-bit code. That's why Clang passes incorrect paths to the linker if user has MIPS multilib environment and wants to compile 32-bit code.
The attached patch fixes this problem. It does not use "lib32" directory to create a library/object files paths list when target is MIPS 32-bit. Later I plan to implement full N32 ABI support and provide more test cases. Please review the patch. -- Simon
mips-lib32.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
