summaryrefslogtreecommitdiff
path: root/ELF/Driver.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-01-19 18:45:04 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-01-19 18:45:04 +0000
commit70a65b6fdde671ba81d93b87098b719ccf7bfb42 (patch)
treed49c696e077da1ada689c0eed0489f9187dc27f2 /ELF/Driver.cpp
parente2fd426bdafe9f5c10066d3926ece6e342184a67 (diff)
Notes
Diffstat (limited to 'ELF/Driver.cpp')
-rw-r--r--ELF/Driver.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ELF/Driver.cpp b/ELF/Driver.cpp
index 13b6119e2dc9..2e2036310fb2 100644
--- a/ELF/Driver.cpp
+++ b/ELF/Driver.cpp
@@ -1006,6 +1006,7 @@ static void setConfigs(opt::InputArgList &Args) {
Config->Endianness = Config->IsLE ? endianness::little : endianness::big;
Config->IsMips64EL = (K == ELF64LEKind && M == EM_MIPS);
Config->Pic = Config->Pie || Config->Shared;
+ Config->PicThunk = Args.hasArg(OPT_pic_veneer, Config->Pic);
Config->Wordsize = Config->Is64 ? 8 : 4;
// ELF defines two different ways to store relocation addends as shown below: