svn commit: r233170 - stable/9/libexec/rtld-elf

Konstantin Belousov kib at FreeBSD.org
Mon Mar 19 10:06:23 UTC 2012


Author: kib
Date: Mon Mar 19 10:06:22 2012
New Revision: 233170
URL: http://svn.freebsd.org/changeset/base/233170

Log:
  MFC r233041:
  Remove write-only variable.

Modified:
  stable/9/libexec/rtld-elf/map_object.c
Directory Properties:
  stable/9/libexec/rtld-elf/   (props changed)

Modified: stable/9/libexec/rtld-elf/map_object.c
==============================================================================
--- stable/9/libexec/rtld-elf/map_object.c	Mon Mar 19 10:04:45 2012	(r233169)
+++ stable/9/libexec/rtld-elf/map_object.c	Mon Mar 19 10:06:22 2012	(r233170)
@@ -65,7 +65,6 @@ map_object(int fd, const char *path, con
     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;
@@ -161,7 +160,6 @@ map_object(int fd, const char *path, con
      * 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;


More information about the svn-src-stable-9 mailing list