New llc option pie-copy-relocations to optimize access to extern globals.
authorSriraman Tallam <tmsriram@google.com>
Thu, 13 Oct 2016 20:54:39 +0000 (20:54 +0000)
committerSriraman Tallam <tmsriram@google.com>
Thu, 13 Oct 2016 20:54:39 +0000 (20:54 +0000)
commitf29fa586e1b403e2ee1a845e7f428a8d04215dc3
tree22375f3dbc4869421da28220f78fcfd2cb4fd513
parent606f01f3092da36b761f9df694e8c8eab9dde603
New llc option pie-copy-relocations to optimize access to extern globals.

This option indicates copy relocations support is available from the linker
when building as PIE and allows accesses to extern globals to avoid the GOT.

Differential Revision: https://reviews.llvm.org/D24849

llvm-svn: 284160
llvm/include/llvm/MC/MCTargetOptions.h
llvm/include/llvm/MC/MCTargetOptionsCommandFlags.h
llvm/lib/MC/MCTargetOptions.cpp
llvm/lib/Target/TargetMachine.cpp
llvm/test/CodeGen/X86/global-access-pie-copyrelocs.ll [new file with mode: 0644]