From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18197 invoked by alias); 13 Dec 2013 01:03:24 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 18186 invoked by uid 89); 13 Dec 2013 01:03:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-we0-f178.google.com Received: from mail-we0-f178.google.com (HELO mail-we0-f178.google.com) (74.125.82.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 13 Dec 2013 01:03:22 +0000 Received: by mail-we0-f178.google.com with SMTP id u57so1250516wes.9 for ; Thu, 12 Dec 2013 17:03:19 -0800 (PST) X-Received: by 10.180.188.175 with SMTP id gb15mr650270wic.50.1386896599898; Thu, 12 Dec 2013 17:03:19 -0800 (PST) Received: from [192.168.1.27] (155.Red-81-38-14.dynamicIP.rima-tde.net. [81.38.14.155]) by mx.google.com with ESMTPSA id x19sm2048129wia.5.2013.12.12.17.03.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 12 Dec 2013 17:03:18 -0800 (PST) Message-ID: <52AA5CD4.7090508@gmail.com> Date: Fri, 13 Dec 2013 01:03:00 -0000 From: =?ISO-8859-1?Q?=C1ngel_Gonz=E1lez?= User-Agent: Thunderbird MIME-Version: 1.0 To: Greg Hopkins CC: "gcc-help@gcc.gnu.org" Subject: Re: ld --wrap option References: <1875ABFC44A4C049BF86786B1EE9A6DD179BD853@SUNAMSEXM01.AMERICAS.ROOT.PRI> In-Reply-To: <1875ABFC44A4C049BF86786B1EE9A6DD179BD853@SUNAMSEXM01.AMERICAS.ROOT.PRI> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2013-12/txt/msg00095.txt.bz2 On 12/12/13 19:28, Greg Hopkins wrote: > Resending due to urgent need. Please help if you can. Thank you. > > Regards, > Greg If you are trying to wrap the funcion from the same file where it's defined, there are a few easy tricks to wrap it, from the original function to #defining the name to the wrapper. Although the best solution coulb be to move it to a separate file.