[PATCH] D48002: [ELF][MIPS] Fix TLS GOT entries for local symbols in shared libraries

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 11 01:48:20 PDT 2018


arichardson created this revision.
arichardson added a reviewer: atanasyan.
Herald added subscribers: llvm-commits, krytarowski, sdardis.
Herald added a reviewer: espindola.

Previously LLD would not add any dynamic relocations and write a module
index of 1 which is not correct for the shared library case.
This can happen when a thread-local global variable is marked as local with
a version script. With this change I am now able to link all of the FreeBSD
base system for MIPS64 with LLD.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D48002

Files:
  ELF/SyntheticSections.cpp
  test/ELF/mips-tls-64-pic-local-variable.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48002.150686.patch
Type: text/x-patch
Size: 4350 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180611/3b4648a2/attachment.bin>


More information about the llvm-commits mailing list