| To: | Vivien Chappelier <vivien.chappelier@enst-bretagne.fr> |
|---|---|
| Subject: | Re: binutils bug workaround |
| From: | "H . J . Lu" <hjl@lucon.org> |
| Date: | Thu, 3 Jan 2002 13:53:34 -0800 |
| Cc: | Ralf Baechle <ralf@oss.sgi.com>, linux-mips@oss.sgi.com |
| In-reply-to: | <Pine.LNX.4.21.0201032241030.8906-200000@melkor>; from vivien.chappelier@enst-bretagne.fr on Thu, Jan 03, 2002 at 10:44:30PM +0100 |
| References: | <Pine.LNX.4.21.0201032241030.8906-200000@melkor> |
| Sender: | owner-linux-mips@oss.sgi.com |
| User-agent: | Mutt/1.2.5i |
On Thu, Jan 03, 2002 at 10:44:30PM +0100, Vivien Chappelier wrote:
> Hi,
>
> There is a binutils bug (as) which produces bad addresses when
> getting the address of a struct member for initializing the same struct,
> and when there is data or static functions declared before:
> int test = 0xdeadbeef;
>
> struct {
> int dummy;
> void *ptr;
> } bug =
> {
> ptr: &bug.ptr
> };
>
> will produce bad value for bug.ptr.
>
> This patch move the declaration of kswapd_wait as a workaround to
> this compiler bug. This probably affects all mips64 kernels.
>
Shouldn't you fix the assmbler instead?
H.J.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: aic7xxx (O2 scsi) DMA coherency, Vivien Chappelier |
|---|---|
| Next by Date: | Re: binutils bug workaround, Ralf Baechle |
| Previous by Thread: | binutils bug workaround, Vivien Chappelier |
| Next by Thread: | Re: binutils bug workaround, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |