[PATCH] D36350: [lld] Allow rel iplt symbols with dynamic symbol table

Shoaib Meenai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 4 20:47:48 PDT 2017


smeenai created this revision.
Herald added a subscriber: emaste.

Emit these symbols as long as we're building in a static configuration,
even if we're emitting a dynamic symbol table. This is consistent with
both bfd and gold.

Ordinarily, the combination of -static and -export-dynamic wouldn't make
much sense. Unfortunately, cmake versions prior to 3.4 forcefully
injected -rdynamic [1], so it seems worthwhile to support.

[1] https://cmake.org/cmake/help/v3.4/policy/CMP0065.html


https://reviews.llvm.org/D36350

Files:
  ELF/Writer.cpp
  test/ELF/gnu-ifunc-dynsym.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36350.109853.patch
Type: text/x-patch
Size: 5251 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170805/81f50b27/attachment.bin>


More information about the llvm-commits mailing list