public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Jim Wilson <wilson@cygnus.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] IP-relative calls in start.S and initfini.c
Date: Fri, 12 May 2000 02:50:58 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590678205082@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590678205064@msgid-missing>

I wrote a simple program that generates a very large program with out of range
calls, compiled it with -Wl,-relax, and looked at the code.  It looks fine.
The out-of-range call gets redirected to a stub at the end of the function
that does a brl with absolute address to the target function.  I don't see
how this can corrupt the gp.

Maybe it is a kernel problem with the emulation?  Have you tried debugging the
code to see where the gp gets corrupted?  Try stepping over the brl instruction
to see if the kernel is clobbering gp.  I don't have a kernel with brl
emulation support yet, so I can not try this myself.

Alternatively, there could be something different about your testcase that
causes the linker relaxation to fail.  I might be obvious if you look at the
code you are getting.

Jim



  parent reply	other threads:[~2000-05-12  2:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-02 21:36 [Linux-ia64] IP-relative calls in start.S and initfini.c Omar Stradella
2000-05-02 22:00 ` Jim Wilson
2000-05-02 22:20 ` Omar Stradella
2000-05-02 22:25 ` Jim Wilson
2000-05-11 18:24 ` Omar Stradella
2000-05-12  2:50 ` Jim Wilson [this message]
2000-05-15 17:57 ` Omar Stradella
2000-05-17 20:17 ` Jim Wilson
2000-05-17 22:28 ` Omar Stradella
2000-05-20  3:15 ` Uros Prestor

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=marc-linux-ia64-105590678205082@msgid-missing \
    --to=wilson@cygnus.com \
    --cc=linux-ia64@vger.kernel.org \
    /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