public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: David Miller <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
Date: Wed, 13 Apr 2011 17:54:00 -0000	[thread overview]
Message-ID: <20110413.105356.112601544.davem@davemloft.net> (raw)
In-Reply-To: <yddy63ekr67.fsf@manam.CeBiTec.Uni-Bielefeld.DE>

From: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Date: Wed, 13 Apr 2011 19:16:32 +0200

> David Miller <davem@davemloft.net> writes:
> 
>> From: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
>> 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 <unknown>: offset 0xff370163 is non-aligned
>>> ld: fatal: relocation error: R_SPARC_GOTDATA_LOX10: file gotdata.o: symbol <unknown>: 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.

  reply	other threads:[~2011-04-13 17:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-11 12:58 Rainer Orth
2011-04-11 19:59 ` David Miller
2011-04-12 13:01   ` Rainer Orth
2011-04-12 22:51     ` David Miller
2011-04-13 17:16       ` Rainer Orth
2011-04-13 17:54         ` David Miller [this message]
2011-04-14 19:40           ` Rainer Orth
2011-04-18 17:24           ` Rainer Orth
2011-04-26 15:57             ` Rainer Orth
2011-04-26 17:36               ` Paolo Bonzini
2011-04-26 20:23               ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110413.105356.112601544.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=bonzini@gnu.org \
    --cc=ebotcazou@adacore.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=ro@CeBiTec.Uni-Bielefeld.DE \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).