Remove unneeded dtv variable.
It is only assigned and not used at all. The object files stay identical when the variables are removed. Approved by: kib
This commit is contained in:
parent
b2870827a3
commit
581f58e7a3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230281
@ -487,10 +487,8 @@ allocate_initial_tls(Obj_Entry *objs)
|
||||
void *__tls_get_addr(tls_index *ti)
|
||||
{
|
||||
Elf_Addr** segbase;
|
||||
Elf_Addr* dtv;
|
||||
|
||||
__asm __volatile("movq %%fs:0, %0" : "=r" (segbase));
|
||||
dtv = segbase[1];
|
||||
|
||||
return tls_get_addr_common(&segbase[1], ti->ti_module, ti->ti_offset);
|
||||
}
|
||||
|
@ -444,10 +444,8 @@ __attribute__((__regparm__(1)))
|
||||
void *___tls_get_addr(tls_index *ti)
|
||||
{
|
||||
Elf_Addr** segbase;
|
||||
Elf_Addr* dtv;
|
||||
|
||||
__asm __volatile("movl %%gs:0, %0" : "=r" (segbase));
|
||||
dtv = segbase[1];
|
||||
|
||||
return tls_get_addr_common(&segbase[1], ti->ti_module, ti->ti_offset);
|
||||
}
|
||||
@ -456,10 +454,8 @@ void *___tls_get_addr(tls_index *ti)
|
||||
void *__tls_get_addr(tls_index *ti)
|
||||
{
|
||||
Elf_Addr** segbase;
|
||||
Elf_Addr* dtv;
|
||||
|
||||
__asm __volatile("movl %%gs:0, %0" : "=r" (segbase));
|
||||
dtv = segbase[1];
|
||||
|
||||
return tls_get_addr_common(&segbase[1], ti->ti_module, ti->ti_offset);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user