From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3960 invoked by alias); 31 Aug 2009 17:27:51 -0000 Received: (qmail 3951 invoked by uid 22791); 31 Aug 2009 17:27:50 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 31 Aug 2009 17:27:45 +0000 Received: from spaceape23.eur.corp.google.com (spaceape23.eur.corp.google.com [172.28.16.75]) by smtp-out.google.com with ESMTP id n7VHRgQv008591 for ; Mon, 31 Aug 2009 10:27:43 -0700 Received: from fxm25 (fxm25.prod.google.com [10.184.13.25]) by spaceape23.eur.corp.google.com with ESMTP id n7VHRedP007077 for ; Mon, 31 Aug 2009 10:27:40 -0700 Received: by fxm25 with SMTP id 25so2970592fxm.29 for ; Mon, 31 Aug 2009 10:27:40 -0700 (PDT) Received: by 10.103.125.27 with SMTP id c27mr2321144mun.110.1251739660153; Mon, 31 Aug 2009 10:27:40 -0700 (PDT) Received: from localhost.localdomain.google.com (adsl-71-133-8-30.dsl.pltn13.pacbell.net [71.133.8.30]) by mx.google.com with ESMTPS id j2sm1153766mue.38.2009.08.31.10.27.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 31 Aug 2009 10:27:37 -0700 (PDT) To: Matt Rice Cc: Binutils Subject: Re: PATCH/RFC: ld add -p/-P options References: <8ba6bed40908281313s1938e0a6l9c2676bf5df6b31f@mail.gmail.com> <8ba6bed40908290341t46a3af19w38434d3d76722548@mail.gmail.com> From: Ian Lance Taylor Date: Mon, 31 Aug 2009 17:43:00 -0000 In-Reply-To: <8ba6bed40908290341t46a3af19w38434d3d76722548@mail.gmail.com> (Matt Rice's message of "Sat\, 29 Aug 2009 03\:41\:18 -0700") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2009-08/txt/msg00588.txt.bz2 Matt Rice writes: > ok, so here is the list of questions I have regarding -P/-p i couldn't > glean from suns documentation > > a) does it require that the shared library denoted as the argument > even exist, or does it just encode it as a shared library name which > is assumed to exist at runtime? The best way to answer all of these questions is to see what Solaris ld actually does. That said, I don't see any reason that the libraries must exist at link time. > b) if the library does exist does it use the soname encoded into the audit lib? I assume so. > c) in the testsuite i had to link to -ptmpdir/audit.so and > -Ptmpdir/audit.so are these basename'd or as is specified on the > command line? I assume as specific on the command line if there is no soname. > d) does ld do any searching for the audit library in the /lib/secure, > /usr/lib/secure,/lib/secure/64 and /usr/lib/secure/64 directories or > anywhere, or is this only handled at runtime? I doubt it ld would search those directories by default, but I really don't know. > e) out of curiosity if 'a' is true does this mean an audit library > could potentially audit itself when also being linked to in a > DT_NEEDED? I don't see why not. Ian