From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7007 invoked by alias); 19 May 2011 17:50:16 -0000 Received: (qmail 6999 invoked by uid 22791); 19 May 2011 17:50:15 -0000 X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_20,SPF_HELO_PASS,TW_BJ,TW_JC,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from bitwagon.com (HELO bitwagon.com) (74.82.39.175) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Thu, 19 May 2011 17:50:01 +0000 Received: from f14-64.local ([67.171.188.169]) by bitwagon.com for ; Thu, 19 May 2011 10:49:59 -0700 Message-ID: <4DD55861.1040900@bitwagon.com> Date: Thu, 19 May 2011 17:50:00 -0000 From: John Reiser User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Thunderbird/3.1.10 MIME-Version: 1.0 To: binutils@sourceware.org Subject: Re: partial linking that resolves relocations References: <4DD5548A.7010906@bitwagon.com> In-Reply-To: <4DD5548A.7010906@bitwagon.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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-05/txt/msg00287.txt.bz2 > There might be a work-around, however. Run "ld -r", then run > "objcopy --strip-symbol=foo". If objcopy interprets this favorably, > then objcopy must resolve the relocations that depend on 'foo'. This succeeds, and works in some cases: "objcopy --localize-symbo=foo". Someone who is really desperate might take the output of "ld -r", then change the string name of 'foo' to (gensym), such as by over-writing the last two characters with "non-printable" bytes. --