From owner-svn-src-all@FreeBSD.ORG Thu Aug 26 10:32:35 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D743D10656A8; Thu, 26 Aug 2010 10:32:35 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id E33AE8FC15; Thu, 26 Aug 2010 10:32:34 +0000 (UTC) Received: by eyx24 with SMTP id 24so1287558eyx.13 for ; Thu, 26 Aug 2010 03:32:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=fhC+w48FDHaLL6r6Q8iuRmB26+tJsqpRlmNwtbmW3GA=; b=FL/kslEfZDdt9E9h1lvpCWw5gb1G4ORDla/DcSHhvrO+/d8kyPJ8Di53SajDAfAni+ Aric2d3WRU1JEZ/nNSL3rrKEBuOPDn4M5QA+Z8SuWFNnXe4ngxDDtgHX7/9smlU18oaB aMjmixZFiQQcIBB4MT1Uskc+5M91Mdz5bKVro= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=iyjtiNDiBP2HGWWd6zT9XHdSt1SvWlXbyq8HH8A5Ki2YLXGnnQSQjvJNO1MfA29pzx ASM0lnIq7OSasgW93VEUXL47Rx+ghWqifI+f02f3N8/mbQBAqCDB1yBYhnmgq72wZYUQ BGY00DJyX0VJAxpTFEtKOdiHq9h72fKP6LPN0= MIME-Version: 1.0 Received: by 10.216.154.133 with SMTP id h5mr8718059wek.93.1282818753646; Thu, 26 Aug 2010 03:32:33 -0700 (PDT) Received: by 10.216.156.135 with HTTP; Thu, 26 Aug 2010 03:32:33 -0700 (PDT) In-Reply-To: <201008260525.o7Q5PpGu032625@svn.freebsd.org> References: <201008260525.o7Q5PpGu032625@svn.freebsd.org> Date: Thu, 26 Aug 2010 16:02:33 +0530 Message-ID: From: "Jayachandran C." To: Warner Losh Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r211832 - head/usr.sbin X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 10:32:35 -0000 On Thu, Aug 26, 2010 at 10:55 AM, Warner Losh wrote: > Author: imp > Date: Thu Aug 26 05:25:51 2010 > New Revision: 211832 > URL: http://svn.freebsd.org/changeset/base/211832 > > Log: > =A0Ugly kludge to paper over some kind of ld bug and/or misuse: don't > =A0build uathload on mips n64 either. I think the issue here is that the default bfd architecture for mips is 32bit (mips:3000). When the input is 'binary', the linker generates objects of this architecture, and this object cannot be linked to n32 or n64 executables. The definition is in contrib/binutils/bfd/cpu-mips.c, in definition of bfd_mips_arch. But to change this, we will need to patch the GNU contrib code... Another solution is to use 'objcopy -B mips:isa64' (which can set the bfd architecture) to convert the binary to elf object instead of using 'ld'. JC.