I’m using my tool to build whole-program bitcode file for big projects,e.g. openldap,apache,BIND
I found that llvm-ld can only link the libraries in /usr/lib,/lib,/X11/(whatever),which causes some errors like "Error opening ‘/usr/lib/libm.so’: /usr/lib/libm.so: wrong ELF class: ELFCLASS32
" (I’m using Fedora 11 X86_64)
I just add
in front of the original relative codes in the llvm-ld.cpp,it works.
I wonder that is there any more elegent method??? or is this just a little patch for llvm-ld???