[PATCH] Make llvm-lto obey -relocation-model

Nick Tomlinson nick.tomlinson at arm.com
Mon Apr 14 05:40:56 PDT 2014


Hello

Currently, llvm-lto always emits position independent code, as this is
hard-coded behaviour. It therefore ignores -relocation-model. The attached
patch fixes this problem. I have also changed the default relocation model
to the LLVM default, rather than dynamic. This seemed the most sensible
thing to do now that llvm-lto allows explicit selection of relocation model.
Please could someone review it?

Many Thanks

p.s: My first attempt at sending this message failed, so just in case it
does appear later as a duplicate, that's why
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-lto_relocmodel.patch
Type: application/octet-stream
Size: 2636 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140414/3b124e93/attachment.obj>


More information about the llvm-commits mailing list