diff options
author | kib <kib@FreeBSD.org> | 2012-03-16 19:09:34 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2012-03-16 19:09:34 +0000 |
commit | dfe2b280a7677ace754533357f0df5a174ad1a7b (patch) | |
tree | 92dbb35a88afe415cdf14ca6f2da6131ce83d90c | |
parent | 470058843222ac697f7dc1e6fde8e2ba8bf6893c (diff) | |
download | FreeBSD-src-dfe2b280a7677ace754533357f0df5a174ad1a7b.zip FreeBSD-src-dfe2b280a7677ace754533357f0df5a174ad1a7b.tar.gz |
Remove write-only variable.
MFC after: 3 days
-rw-r--r-- | libexec/rtld-elf/map_object.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libexec/rtld-elf/map_object.c b/libexec/rtld-elf/map_object.c index 9f4a499..d74ef15 100644 --- a/libexec/rtld-elf/map_object.c +++ b/libexec/rtld-elf/map_object.c @@ -65,7 +65,6 @@ map_object(int fd, const char *path, const struct stat *sb) Elf_Phdr *phtls; caddr_t mapbase; size_t mapsize; - Elf_Off base_offset; Elf_Addr base_vaddr; Elf_Addr base_vlimit; caddr_t base_addr; @@ -174,7 +173,6 @@ map_object(int fd, const char *path, const struct stat *sb) * Map the entire address space of the object, to stake out our * contiguous region, and to establish the base address for relocation. */ - base_offset = trunc_page(segs[0]->p_offset); base_vaddr = trunc_page(segs[0]->p_vaddr); base_vlimit = round_page(segs[nsegs]->p_vaddr + segs[nsegs]->p_memsz); mapsize = base_vlimit - base_vaddr; |