From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21555 invoked by alias); 17 Dec 2002 21:39:06 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 21433 invoked from network); 17 Dec 2002 21:39:04 -0000 Received: from unknown (HELO zok.sgi.com) (204.94.215.101) by 209.249.29.67 with SMTP; 17 Dec 2002 21:39:04 -0000 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by zok.sgi.com (8.12.2/8.12.2/linux-outbound_gateway-1.2) with ESMTP id gBHKhjKp013260 for ; Tue, 17 Dec 2002 12:43:45 -0800 Received: from quasar.engr.sgi.com (quasar.engr.sgi.com [130.62.180.91]) by cthulhu.engr.sgi.com (SGI-8.9.3/8.9.3) with ESMTP id NAA53030 for ; Tue, 17 Dec 2002 13:38:52 -0800 (PST) Received: (from davea@localhost) by quasar.engr.sgi.com (SGI-8.9.3/8.9.3) id NAA17062 for gdb@sources.redhat.com; Tue, 17 Dec 2002 13:38:32 -0800 (PST) Date: Tue, 17 Dec 2002 13:39:00 -0000 From: David Anderson Message-Id: <200212172138.NAA17062@quasar.engr.sgi.com> To: gdb@sources.redhat.com Subject: Re: relocation of shared libs not based at 0 X-SW-Source: 2002-12/txt/msg00261.txt.bz2 "Kris Warkentin" writes: >Can anyone with more knowledge than I enlighten me as to a) whether it is >proper to allow shared objects to be non zero-based and b) a better way to >do this. I looked at putting it in solib-svr4.c but I don't have access to >the bfd in there, at least in svr4_relocate_section_addresses(). While I cannot speak for gdb requirements, I can say that there is no requirement in generic-SYSV that shared objects start at a zero address. SGI IRIX (which is SYSV based) has never used zero as the base address for shared objects, but always pre-assigns a non-zero base address at static link time (intending that the shared object will start up faster if it can run at that address). Regards David B. Anderson davea@sgi.com http://reality.sgiweb.org/davea [ "What could go wrong?" -- Calvin ]