From: Thiemo Seufer <ths@networkno.de>
To: Mike Crowe <mac@mcrowe.com>
Cc: linux-mips@linux-mips.org
Subject: Re: Strange gp corruption problem
Date: Thu, 12 Jul 2007 18:21:52 +0100 [thread overview]
Message-ID: <20070712172152.GC30622@networkno.de> (raw)
In-Reply-To: <20070712170624.GA31776@mcrowe.com>
Mike Crowe wrote:
[snip]
> We have a function that does some string manipulation (not
> particularly dangerous manipulation and I've been through it
> carefully) and then calls atol. As expected the prologue of this
> function calculates the value of the gp register by applying an offset
> to the t9 register which contains the address of the start of the
> function like this:
>
> 47995c: 3c1c0fba lui gp,0xfba
Looks weird as an entry point. Normally entries are 8 byte aligned.
[snip]
> The only user-space reason I can come up with for this happening is if
> the caller jumped into this function one instruction late. This seems
> unlikely because t9 contains the correct value and the stack looks
> fine.
Check the value of $ra (e.g. with a gdb breakpoint) after entering the
function.
Thiemo
next prev parent reply other threads:[~2007-07-12 17:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-12 17:06 Strange gp corruption problem Mike Crowe
2007-07-12 17:21 ` Thiemo Seufer [this message]
2007-07-12 19:10 ` Mike Crowe
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=20070712172152.GC30622@networkno.de \
--to=ths@networkno.de \
--cc=linux-mips@linux-mips.org \
--cc=mac@mcrowe.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.