From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 66839 invoked by alias); 16 Mar 2017 16:59:58 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 66743 invoked by uid 89); 16 Mar 2017 16:59:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy= X-HELO: mail-qt0-f176.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=jEsD4jn5Q5bOp01og33IB3y1IVOfiNx65d9TfnHoGc8=; b=Mka5Ul5U35T7dLPwQ8YO+k67RAzc9343Y/VJTQ7Y35iXGfvPy8jCumwSYNP7uRUBue zgfRylAAM1JGZNsYtCVrClySM27N/FJWtewZdVYEyZwcpPuow8fo+6Wg9E3juibpCanr EZmCiXOeSSnxKBCKSEZp7gE1j+R4YkwbHo0FCI54UlNcyk2ANwCz05YsgmLbb0Kg9zXa xID669IBoVnr7zZgzRBus0HP+li0wfSqXXwpNGNnBpjOfGf+Umm48EXxXehodtboJav9 +OAqfa4cj68sKgwjwykRhEQ3+1Y5TSBpDLwxPc7qiWw99AEaqTgzuCukaeZms0b5ngXf Ud8w== X-Gm-Message-State: AFeK/H2mn8moEwtT/YoxdisGpkoJskfmMPs/Q01XzzI/D3R4U1rTyUaG0YfpXnegF0BiEcRY X-Received: by 10.237.53.226 with SMTP id d31mr9105636qte.184.1489683595357; Thu, 16 Mar 2017 09:59:55 -0700 (PDT) Subject: Re: [PATCH 2/2] sparc: Fix .udiv plt on libc To: libc-alpha@sourceware.org References: <1489671790-7611-1-git-send-email-adhemerval.zanella@linaro.org> <1489671790-7611-2-git-send-email-adhemerval.zanella@linaro.org> <0c57bbb9-71b4-7e20-3b70-5e8553c960a0@redhat.com> From: Adhemerval Zanella Message-ID: <1078e264-e80b-114f-abe7-e81460153b9b@linaro.org> Date: Thu, 16 Mar 2017 16:59:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <0c57bbb9-71b4-7e20-3b70-5e8553c960a0@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2017-03/txt/msg00328.txt.bz2 On 16/03/2017 11:45, Florian Weimer wrote: > On 03/16/2017 02:43 PM, Adhemerval Zanella wrote: >> To avoid it, this patch uses the linker option --wrap to replace all >> the internal libc.so .udiv calls to the wrapper __wrap_.udiv. Along >> with strong alias in the udiv implementations, it makes linker do >> local calls. > > I think we already use a different mechanism for a similar purpose, via sysdeps/generic/symbol-hacks.h. Maybe it's possible to reuse that? > > Thanks, > Florian The problem is now that divdi3 is not provided by glibc anymore we can't use the same trick since __divdi3 and __moddi3 will be provided by libgcc. Another way to actually redefine .udiv is to either still keep using divdi3 for sparc32 .