Skip to content
  • Rafael Espindola's avatar
    Start adding tlsdesc support for aarch64. · e37d13b9
    Rafael Espindola authored
    This is mostly extracted from http://reviews.llvm.org/D18960.
    
    The general idea for tlsdesc is that the two GD got entries are used
    for a function pointer and its argument. The dynamic linker sets
    both. In the non-dlopen case the dynamic linker sets the function to
    the identity and the argument to the offset in the tls block.
    
    All that the static linker has to do in the non-dlopen case is
    relocate the code to point to the got entries and create a dynamic
    relocation.
    
    The dlopen case is more complicated, but can be implemented in another patch.
    
    llvm-svn: 271569
    e37d13b9
Loading