From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20906 invoked by alias); 16 Feb 2012 10:01:36 -0000 Received: (qmail 20887 invoked by uid 22791); 16 Feb 2012 10:01:34 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from hall.aurel32.net (HELO hall.aurel32.net) (88.191.126.93) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Feb 2012 10:00:46 +0000 Received: from aurel32 by hall.aurel32.net with local (Exim 4.72) (envelope-from ) id 1Rxy8r-00089Q-Cq for libc-ports@sourceware.org; Thu, 16 Feb 2012 11:00:45 +0100 Date: Thu, 16 Feb 2012 10:01:00 -0000 From: Aurelien Jarno To: libc-ports@sourceware.org Subject: Building glibc on MIPS with -mplt Message-ID: <20120216100045.GA21604@hall.aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org X-SW-Source: 2012-02/txt/msg00056.txt.bz2 Hi, I am trying to build glibc, in the o32, n32 and n64 ABI with a GCC compiler defaulting to -mplt. While it works on the o32 and n64 ABI, it doesn't work on the n32 ABI, for which I get some functions without cancellation, as detected by tst-cancel-wrappers.sh. After some investigation it appears that sysdep-cancel.h for mips64 (that is for n32 and n64) doesn't handle the non -fPIC case, while the version for mips32 does handle it since commit 63fb881a, that is the commit handling PLT support. Strangely it works for n64 as -fPIC seems to be enabled even with -mplt. First of all, I would like to have your opinion on having a GCC compiler defaulting to -mplt (that is configured with --with-mips-plt), is it a good thing or not? Secondly does it make sense to try to build the glibc with -mplt, or -mno-plt is a better option for this? In one case we can force -mno-plt if needed in the configure script, in the other case we should fix sysdep-cancel.h for mips64. Thanks, Aurelien -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net