[Top] [All Lists]

binutils bug workaround

To: Ralf Baechle <>
Subject: binutils bug workaround
From: Vivien Chappelier <>
Date: Thu, 3 Jan 2002 22:44:30 +0100 (CET)

        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.

Vivien Chappelier.

Attachment: linux-mips-binutils_bug_workaround.diff
Description: Text document

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