HA: [PATCH] D14382: [ELF2] - Basic implementation of -r/--relocatable
Rafael EspĂndola via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 5 11:45:27 PST 2015
> (One possibility I can imagine in which relocation resolution could be
> profitable is that that's easy to parallelize. We can run ld -r for each
> subdirectory in parallel and then do the final link using combined object
> files. But I'm not sure that could really be profitable since we can
> parallelize the linker itself using threads. So it's important that the
> option is proved to be useful with relocation resolution.)
It also allows caching of intermediate steps. Lets say I changed
lib/IR/Function.cpp. Now only libLLVMCore.o and programs using it are
relinked. The work done in, for example, libLLVMSupport.o is saved.
Cheers,
Rafael
More information about the llvm-commits
mailing list