diff options
author | Fangrui Song <i@maskray.me> | 2021-01-09 00:32:02 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2021-01-09 00:32:02 -0800 |
commit | 38a716c30f095c7d7148482070ea4a3352b926d5 (patch) | |
tree | 17e547ccc1a64857fff055f3d618786218edcd72 /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp | |
parent | 1d3ebbf537832f80be97739abc4f6962caad1dab (diff) | |
download | llvm-38a716c30f095c7d7148482070ea4a3352b926d5.zip llvm-38a716c30f095c7d7148482070ea4a3352b926d5.tar.gz llvm-38a716c30f095c7d7148482070ea4a3352b926d5.tar.bz2 |
Make -fno-pic respect -fno-direct-access-external-data
D92633 added -f[no-]direct-access-external-data to supersede -m[no-]pie-copy-relocations.
(The option works for -fpie but is a no-op for -fno-pic and -fpic.)
This patch makes -fno-pic -fno-direct-access-external-data drop dso_local from
global variable declarations. This usually causes the backend to emit a GOT
indirection for external data access. With a GOT relocation, the subsequent
-no-pie link will not have copy relocation even if the data symbol turns out to
be defined by a shared object.
Differential Revision: https://reviews.llvm.org/D92714
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions