public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew Haley <aph@redhat.com>
To: "Mark Galeck (CW)" <mgaleck@Brocade.com>
Cc: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Subject: Re: why is g++ relocation error linking only showing when listing objects explicitly?
Date: Fri, 21 Dec 2012 15:17:00 -0000	[thread overview]
Message-ID: <50D47D83.60005@redhat.com> (raw)
In-Reply-To: <CB4696DA7737D0409230B481D0363B1414F07B6727@HQ1-EXCH03.corp.brocade.com>

On 12/21/2012 03:10 PM, Mark Galeck (CW) wrote:
>> Aha!  The error is in crtbeginS.o.  This is important: it is not one of the files you compiled.  Therefore, no matter what you do with -mlongcall", it won't help.  It may be that recompiling crtbeginS.o with
> 
> -mlongcall" would help, but we'd need a PPC export to confirm that.
> 
> Out of the question... :(   can't recompile any system stuff.  
> 
>> It may be easier simply to split the shared library.
> 
> Also out of the question I am afraid.  Has to be one lib.

Well, that's the trouble.  There are a couple of correct ways to fix
your problem, but you reject them because you aren't allowed.

> Well, the thing is, there is one particular order of the .o files,
> that seems to work.  It's just that, I am using a different order.
> I don't want to use that other order, besides, it's like
> hit-and-miss, one day (perhaps tomorrow), someone will add another
> object and it won't work any more.

Exactly.  That's why it's the wrong thing to do.

Andrew.

      reply	other threads:[~2012-12-21 15:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1355719810.9320.ezmlm@gcc.gnu.org>
2012-12-17  4:59 ` Mark Galeck (CW)
2012-12-21  9:38 ` Mark Galeck (CW)
2012-12-21 10:40   ` Jonathan Wakely
2012-12-21 14:04     ` Mark Galeck (CW)
2012-12-21 14:29       ` Mark Galeck (CW)
2012-12-21 14:36         ` Mark Galeck (CW)
2012-12-21 14:47           ` Andrew Haley
2012-12-21 14:57             ` Mark Galeck (CW)
2012-12-21 15:07               ` Andrew Haley
2012-12-21 15:10                 ` Mark Galeck (CW)
2012-12-21 15:17                   ` Andrew Haley [this message]

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=50D47D83.60005@redhat.com \
    --to=aph@redhat.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=mgaleck@Brocade.com \
    /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).