From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14817 invoked by alias); 13 Jul 2011 15:46:26 -0000 Received: (qmail 14805 invoked by uid 22791); 13 Jul 2011 15:46:22 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 13 Jul 2011 15:46:07 +0000 Received: from kpbe15.cbf.corp.google.com (kpbe15.cbf.corp.google.com [172.25.105.79]) by smtp-out.google.com with ESMTP id p6DFk6xO023439 for ; Wed, 13 Jul 2011 08:46:06 -0700 Received: from yxk30 (yxk30.prod.google.com [10.190.3.158]) by kpbe15.cbf.corp.google.com with ESMTP id p6DFjVer031549 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 13 Jul 2011 08:46:05 -0700 Received: by yxk30 with SMTP id 30so2135663yxk.11 for ; Wed, 13 Jul 2011 08:46:04 -0700 (PDT) Received: by 10.91.160.9 with SMTP id m9mr1409785ago.10.1310571964659; Wed, 13 Jul 2011 08:46:04 -0700 (PDT) Received: from coign.google.com ([2620:0:1000:167c:21d:e0ff:fe06:c087]) by mx.google.com with ESMTPS id o7sm5641144ang.46.2011.07.13.08.46.03 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 13 Jul 2011 08:46:04 -0700 (PDT) From: Ian Lance Taylor To: Aleksandar Simeonov Cc: binutils , rich@mips.com Subject: Re: Using linker script instead of library in Gold References: <4E1DAC56.5070105@RT-RK.com> Date: Wed, 13 Jul 2011 19:39:00 -0000 In-Reply-To: <4E1DAC56.5070105@RT-RK.com> (Aleksandar Simeonov's message of "Wed, 13 Jul 2011 16:31:50 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (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: 2011-07/txt/msg00131.txt.bz2 Aleksandar Simeonov writes: > I have one short question today. Situation is as follow: instead of > having lib.so as shared library, on our Linux distribution we have ld > linker script: > /* GNU ld script > Use the shared library, but some functions are only in > the static library, so try that secondarily. */ > OUTPUT_FORMAT(elf32-tradlittlemips) > GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( > /lib/ld.so.1 ) ) > > Is Gold capable of using it (for ld is enough to put -lc in command > line) and if yes, what command option should be used? This is normal on any glibc-based system. gold supports this without requiring any special options. Ian