[cfe-commits] [patch] ld emulation mode on mips platform

Atanasyan, Simon satanasyan at mips.com
Mon Nov 7 00:58:20 PST 2011


The driver runs "ld" with incorrect emulation mode on a mips platform. That leads to the following error:
[[
/usr/bin/ld: unrecognised emulation mode: elf_x86_64
Supported emulations: elf32ltsmip elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip
clang: error: linker command failed with exit code 1 (use -v to see invocation)
]]

Here is a patch that fixes this issue. The patch does not support "n32" abi (i.e. does not handle elf32ltsmipn32 / elf32btsmipn32 emulation modes). I plan to fix it later.

--
Simon Atanasyan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ld-m-opt.clang-trunk.patch
Type: text/x-patch
Size: 767 bytes
Desc: ld-m-opt.clang-trunk.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111107/58aa0a59/attachment.bin>


More information about the cfe-commits mailing list