Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Mar 2012 11:32:42 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r233172 - stable/8/libexec/rtld-elf
Message-ID:  <201203191132.q2JBWgR8066550@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Mon Mar 19 11:32:42 2012
New Revision: 233172
URL: http://svn.freebsd.org/changeset/base/233172

Log:
  MFC r233041:
  Remove write-only variable.

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

Modified: stable/8/libexec/rtld-elf/map_object.c
==============================================================================
--- stable/8/libexec/rtld-elf/map_object.c	Mon Mar 19 11:27:54 2012	(r233171)
+++ stable/8/libexec/rtld-elf/map_object.c	Mon Mar 19 11:32:42 2012	(r233172)
@@ -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;
@@ -146,7 +145,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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203191132.q2JBWgR8066550>