From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3605 invoked by alias); 13 Apr 2011 17:54:37 -0000 Received: (qmail 3596 invoked by uid 22791); 13 Apr 2011 17:54:36 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,RDNS_DYNAMIC,TW_XF X-Spam-Check-By: sourceware.org Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net (HELO sunset.davemloft.net) (74.93.104.97) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 13 Apr 2011 17:54:32 +0000 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id DFC4F24C089; Wed, 13 Apr 2011 10:53:56 -0700 (PDT) Date: Wed, 13 Apr 2011 17:54:00 -0000 Message-Id: <20110413.105356.112601544.davem@davemloft.net> To: ro@CeBiTec.Uni-Bielefeld.DE Cc: gcc-patches@gcc.gnu.org, ebotcazou@adacore.com, bonzini@gnu.org Subject: Re: [build] Avoid ld -v error message with Sun ld on SPARC From: David Miller In-Reply-To: References: <20110412.155056.212685188.davem@davemloft.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-04/txt/msg01020.txt.bz2 From: Rainer Orth Date: Wed, 13 Apr 2011 19:16:32 +0200 > David Miller writes: > >> From: Rainer Orth >> Date: Tue, 12 Apr 2011 15:00:53 +0200 >> >>> On Solaris 10, as assembles the test just fine, but ld cannot deal with >>> gas 2.21 output: >>> >>> ld: fatal: relocation error: R_SPARC_GOTDATA_HIX22: file gotdata.o: symbol : offset 0xff370163 is non-aligned >>> ld: fatal: relocation error: R_SPARC_GOTDATA_LOX10: file gotdata.o: symbol : offset 0xff370167 is non-aligned >>> ld: fatal: file gotdata: creation interrupted: Error 0 >> >> Really strange error message, could you see if adding something as simply as >> ".align 4" after the ".text" in the test assembler makes this go away? > > yep, that does the trick. > >>> Ok for mainline? >> >> I'm fine with this patch, we can try to attack the above problem independently. > > Thanks, installed. Thanks Rainer, if you cons up a patch to add the ".align" directive I'll ACK that as well.