[llvm-dev] [LLD][ELF] Symbol/Relocation manipulation.

Sid Manning via llvm-dev llvm-dev at lists.llvm.org
Fri Dec 27 06:46:47 PST 2019


I'd like to convert the following
call A at GDPLT  //R_HEX_GD_PLT_B22_PCREL

to
call __tls_get_addr  //R_HEX_B22_PCREL

"A" is a TLS variable and preceding code has prepared for the call.

When the R_HEX_GD_PLT_B22_PCREL is found it will initially point to the TLS variable so at that point I'd like to define a __tls_get_addr symbol and update the relocation's type and symbol to point to it.

Is there an existing mechanism to do this?  It would happen during relaxation I guess.

Thanks,


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191227/7baa9cd2/attachment.html>


More information about the llvm-dev mailing list