From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3151 invoked by alias); 4 Mar 2011 17:31:52 -0000 Received: (qmail 3139 invoked by uid 22791); 4 Mar 2011 17:31:51 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_LX,TW_QL X-Spam-Check-By: sourceware.org Received: from mail-bw0-f41.google.com (HELO mail-bw0-f41.google.com) (209.85.214.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Mar 2011 17:31:47 +0000 Received: by bwz17 with SMTP id 17so2605255bwz.0 for ; Fri, 04 Mar 2011 09:31:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.188.129 with SMTP id da1mr817387bkb.85.1299259904142; Fri, 04 Mar 2011 09:31:44 -0800 (PST) Received: by 10.204.7.3 with HTTP; Fri, 4 Mar 2011 09:31:44 -0800 (PST) In-Reply-To: References: Date: Fri, 04 Mar 2011 17:31:00 -0000 Message-ID: Subject: Re: Support for automatic linking via pragma From: Olaf van der Spek To: "H.J. Lu" Cc: binutils@sourceware.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 2011-03/txt/msg00064.txt.bz2 On Fri, Mar 4, 2011 at 5:44 PM, H.J. Lu wrote: > Not necessarily. =C2=A0Unlike DSO, object files don't have ABI/API > information. You may not link foo.o compiled with glibc 2.5/libbar > 1.3 against glibc 2.13/libbar 1.9 It's (at first) intended for apps that just use: -lboost_program_options-mt -lboost_system-mt -lctemplate -lmysqlclient -lpthread -lxbt -lz With this feature, they don't need to pass this info automatically. > You may not link foo.o compiled with glibc 2.5/libbar > 1.3 against glibc 2.13/libbar 1.9 True, but that's a different problem. One that might benefit from auto link= ing. Is the ABI/API info encoded in the lib name? --=20 Olaf