[PATCH] [lld][ELF] rename TLV contentTypes for ELF

Shankar Kalpathi Easwaran shankarke at gmail.com
Thu Aug 22 20:00:39 PDT 2013



  Thanks for the brief explanation Nick.

  What happens on Darwin when for static executables, Does the call still get routed through the thunk  ? If not does linker do a optimization to convert the call to not go through a thunk ?

  A similiar model exists on ELF, with the TLS GD model (Global dynamic model) that all accesses to thread local storage goes through a function (__tls_get_addr) which takes a module index. The module index  and the current thread id is translated by the loader to provide the actual address of the symbol.

  I think by default then Darwin follows a similiar model like the ELF global dynamic model ?

  ELF supports a number of models though,

  GD(Global dynamic), LD (local dynamic), IE(Initial exec), LE (local exec).

http://llvm-reviews.chandlerc.com/D1482



More information about the llvm-commits mailing list