diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-05-10 12:37:29 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-05-10 12:40:18 -0700 |
commit | f1d31a2d5eba253f6c9ade5a2cae2b6b84d7236a (patch) | |
tree | 8e17bea12f083785d8c9dae81fd39d1ae914e7bc /tensorflow/tensorflow.bzl | |
parent | 0172ce3504dc455198b67d9cdda19bce012af1a9 (diff) |
DT_TEXTREL set by -Wl,-z,notext is incompatible with indirect functions (IFUNC).
NVFlex.o in cuda_9_0/lib64/libculibos.a has buggy .eh_frame, which overlaps with .rela.rodata R_X86_64_PC32 relocations and makes it not able to be linked with LLD.
PiperOrigin-RevId: 196155873
Diffstat (limited to 'tensorflow/tensorflow.bzl')
-rw-r--r-- | tensorflow/tensorflow.bzl | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tensorflow/tensorflow.bzl b/tensorflow/tensorflow.bzl index b2cec7655f..4bfd8f5721 100644 --- a/tensorflow/tensorflow.bzl +++ b/tensorflow/tensorflow.bzl @@ -959,15 +959,6 @@ def tf_cuda_library(deps=None, cuda_deps=None, copts=tf_copts(), **kwargs): if not cuda_deps: cuda_deps = [] - if 'linkstatic' not in kwargs or kwargs['linkstatic'] != 1: - enable_text_relocation_linkopt = select({ - clean_dep("//tensorflow:darwin"): [], - clean_dep("//tensorflow:windows"): [], - "//conditions:default": ['-Wl,-z,notext'],}) - if 'linkopts' in kwargs: - kwargs['linkopts'] += enable_text_relocation_linkopt - else: - kwargs['linkopts'] = enable_text_relocation_linkopt native.cc_library( deps=deps + if_cuda(cuda_deps + [ clean_dep("//tensorflow/core:cuda"), |