Misc fixes for ld.mcld to build most run-tests.sh
Fixes:
1. Ignore -EL and -EB from MIPS GCC/collect2
2. Translate GNU linker emulation to proper triple
3. Ignore empty archive (eg. In hello-gl2 libstdc++.a is only 8-byte long)
4. Strip llvm-3.x/*/*/bin/* and lib/* unconditionally. Otherwise ld.mcld
is more than twice as big
Run:
ANDROID_SERIAL=none ./run-tests.sh --continue-on-build-fail
Remaining fails (ToDo):
flto: -plugin -plugin-opt not supported
[ARM] issue41297-atomic-64bit & static-executable
Warning: Option gc-sections' is not implemented yet!
Warning: Option fix-cortex-a8' is not implemented yet!
Unreachable: encounter unsupported relocation type 102
[MIPS] static-executable
ld.mcld: ...../lib/Target/Mips/MipsLDBackend.cpp:188: virtual mcld::MipsELFDynamic&
mcld::MipsGNULDBackend::dynamic(): Assertion __null != m_pDynamic' failed.
Stack dump:
0.Running pass 'Function Pass Manager' on module 'Empty Module'.
Change-Id: I61ac5c64399cff755f84fc193ea1667396e8ebc0
5 files changed