From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1201 invoked by alias); 4 Feb 2013 19:58:05 -0000 Received: (qmail 1187 invoked by uid 22791); 4 Feb 2013 19:58:03 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from gateway04.websitewelcome.com (HELO gateway04.websitewelcome.com) (69.56.195.7) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 04 Feb 2013 19:57:59 +0000 Received: by gateway04.websitewelcome.com (Postfix, from userid 5007) id 0228A4080512E; Mon, 4 Feb 2013 13:57:53 -0600 (CST) Received: from gator1174.hostgator.com (gator1174.hostgator.com [174.121.16.2]) by gateway04.websitewelcome.com (Postfix) with ESMTP id EC3F34080510A for ; Mon, 4 Feb 2013 13:57:52 -0600 (CST) Received: from [101.98.150.122] (port=61461 helo=[192.168.0.102]) by gator1174.hostgator.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.80) (envelope-from ) id 1U2SAw-0001Fe-07; Mon, 04 Feb 2013 13:57:58 -0600 Subject: Re: Question about prelink address layout Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=iso-8859-1 From: Maxim Kuvyrkov In-Reply-To: Date: Mon, 04 Feb 2013 19:58:00 -0000 Cc: libc-help@sourceware.org, prelink@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: <3E97E3E1-9615-4A98-86F6-8267678657A0@kugelworks.com> References: To: jiji vinitha X-BWhitelist: yes X-Source-Sender: ([192.168.0.102]) [101.98.150.122]:61461 X-Source-Auth: maxim@kugelworks.com X-Email-Count: 3 X-Source-Cap: bWt1dnk7bWt1dnk7Z2F0b3IxMTc0Lmhvc3RnYXRvci5jb20= Mailing-List: contact prelink-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: prelink-owner@sourceware.org X-SW-Source: 2013-q1/txt/msg00000.txt.bz2 On 5/02/2013, at 12:13 AM, jiji vinitha wrote: > Hi, > Sorry if its not proper to ask here. The canonical list for prelink questions is prelink@sourceware.org , but li= bc-help@ is also OK. Libc-alpha is for glibc development. > I have question regarding prelink virtual space address layout . > I am using prelink in an arm linux environment. > I can see that prelink virtual memory slot is fixed in the prelink > source code(arch-arm.c) ie, 0x41000000-0x50000000 for arm. > With this, prelinking was working fine for me with kernel > configurations (CONFIG_VMSPLIT_3G =3D y and CONFIG_VMSPLIT_2G =3D y). > But when I changed my kernel configuration to CONFIG_VMSPLIT_1G=3Dy, I > find that prelink checking is failed at runtime, because prelink > expects the libaries to be loaded at 0x41xxxxxx and it is not possible > to mmap in this address range in 1G/3G configuarion. > Is this virtual space address layout is fixed in prelink or can it be > configurable ? You need to adjust mmap_base setting in arch-arm.c from 0x41000000 to a val= ue that your 1G kernel uses to map shared libraries. AFAICT, there's no co= nfigurable setting to adjust this from command line. -- Maxim Kuvyrkov KugelWorks