summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-cov/SourceCoverageViewText.cpp
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2016-09-23 18:47:50 +0000
committerDavide Italiano <davide@freebsd.org>2016-09-23 18:47:50 +0000
commit03f7005375c2624538af42e8d6e8a8b7e13b6000 (patch)
treeb8bdf37fc98b40870968b5ffbdad7aea8401ec2f /llvm/tools/llvm-cov/SourceCoverageViewText.cpp
parent04949faf69ad46ed97d7276a3a7d7e762f5b8f77 (diff)
downloadbcm5719-llvm-03f7005375c2624538af42e8d6e8a8b7e13b6000.tar.gz
bcm5719-llvm-03f7005375c2624538af42e8d6e8a8b7e13b6000.zip
[ELF] Resolve weak undefined TLS symbols when no phdr is available.
If we pass --gc-sections to lld and .tbss is not referenced, the section is reclaimed and lld doesn't create a TLS program header. R_TLS tries to access the program header -> lld crashes. Mimic what bfd/gold do in this case and resolve a weak undefined TLS symbol to the base of the TLS block, i.e. give it a value of zero. Differential Revision: https://reviews.llvm.org/D24832 llvm-svn: 282279
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageViewText.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud