<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family:"Courier New",monospace; font-size:10pt; color:rgb(0,0,0)">
I'd like to convert the following</div>
<div style="font-family:"Courier New",monospace; font-size:10pt; color:rgb(0,0,0)">
call A@GDPLT  //R_HEX_GD_PLT_B22_PCREL</div>
<div style="font-family:"Courier New",monospace; font-size:10pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:"Courier New",monospace; font-size:10pt; color:rgb(0,0,0)">
to </div>
<div style="font-family:"Courier New",monospace; font-size:10pt; color:rgb(0,0,0)">
call __tls_get_addr  //R_HEX_B22_PCREL</div>
<div style="font-family:"Courier New",monospace; font-size:10pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:"Courier New",monospace; font-size:10pt; color:rgb(0,0,0)">
"A" is a TLS variable and preceding code has prepared for the call.</div>
<div style="font-family:"Courier New",monospace; font-size:10pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:"Courier New",monospace; font-size:10pt; color:rgb(0,0,0)">
<span style="color:rgb(0,0,0); font-family:"Courier New",monospace; font-size:10pt">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.</span></div>
<div style="font-family:"Courier New",monospace; font-size:10pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:"Courier New",monospace; font-size:10pt; color:rgb(0,0,0)">
Is there an existing mechanism to do this?  It would happen during relaxation I guess.</div>
<div style="font-family:"Courier New",monospace; font-size:10pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:"Courier New",monospace; font-size:10pt; color:rgb(0,0,0)">
Thanks,</div>
<div style="font-family:"Courier New",monospace; font-size:10pt; color:rgb(0,0,0)">
</div>
<div style="font-family:"Courier New",monospace; font-size:10pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:"Courier New",monospace; font-size:10pt; color:rgb(0,0,0)">
<br>
</div>
</body>
</html>