aboutsummaryrefslogtreecommitdiff
path: root/libexec/rtld-elf/i386
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2012-01-17 21:55:20 +0000
committerEd Schouten <ed@FreeBSD.org>2012-01-17 21:55:20 +0000
commit581f58e7a3b6eec8df4a415bfb4cfa7499b66778 (patch)
treecebf789eac341e217441b014adec119a345eedfa /libexec/rtld-elf/i386
parentb2870827a37d10be4fb7b9099efead19f9113f70 (diff)
downloadsrc-581f58e7a3b6eec8df4a415bfb4cfa7499b66778.tar.gz
src-581f58e7a3b6eec8df4a415bfb4cfa7499b66778.zip
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
Notes
Notes: svn path=/head/; revision=230281
Diffstat (limited to 'libexec/rtld-elf/i386')
-rw-r--r--libexec/rtld-elf/i386/reloc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libexec/rtld-elf/i386/reloc.c b/libexec/rtld-elf/i386/reloc.c
index 68a5331064bf..a2c8c987f32e 100644
--- a/libexec/rtld-elf/i386/reloc.c
+++ b/libexec/rtld-elf/i386/reloc.c
@@ -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);
}