linux-mips
[Top] [All Lists]

Re: [patch] fix profiling in glibc for Linux/MIPS

To: Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>
Subject: Re: [patch] fix profiling in glibc for Linux/MIPS
From: Ralf Baechle <ralf@oss.sgi.com>
Date: Fri, 27 Jul 2001 05:18:24 +0200
Cc: linux-mips@oss.sgi.com
In-reply-to: <20010727024820.B27008@rembrandt.csv.ica.uni-stuttgart.de>; from ica2_ts@csv.ica.uni-stuttgart.de on Fri, Jul 27, 2001 at 02:48:20AM +0200
References: <20010726103922.A6643@nevyn.them.org> <20010727024820.B27008@rembrandt.csv.ica.uni-stuttgart.de>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
On Fri, Jul 27, 2001 at 02:48:20AM +0200, Thiemo Seufer wrote:
> Date: Fri, 27 Jul 2001 02:48:20 +0200
> To: linux-mips@oss.sgi.com
> Subject: Re: [patch] fix profiling in glibc for Linux/MIPS
> From: Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>
> 
> Daniel Jacobowitz wrote:
> > _mcount was doing awful things to its caller's stack frame.
> 
> Maybe I'm missing something, but both the old and the new code
> add 8 byte more to sp than they subtracted before. How is this
> supposed to work?

_mcount has some odd special calling convention.  I don't recall any official
standard that defines _mcount's calling convention but gcc uses it the
same way as the proprietary compiler I tried.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>