Subject: Re: linux-next: net tree build failure

From: Stephen Rothwell <[email-masked]>
Date: Fri, 23 Jan 2009 21:21:28 +1100

Hi Dave,

On Fri, 23 Jan 2009 00:13:37 -0800 (PST) David Miller <[email-masked]> wrote:
>
> Ok, if one was in the BSS then very likely my patch will fix
> things.
> 
> Look forward to your test results :)
> 

I did some builds just using Debian Sid's native x86 gcc and binutils:

$ gcc --version
gcc (Debian 4.3.2-4) 4.3.3 20090119 (prerelease)
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ as --version
GNU assembler (GNU Binutils for Debian) 2.18.0.20080103
Copyright 2007 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `i486-linux-gnu'.

Without your patch:

$ objdump -t com20020*.o | grep _ops
0000000000000000 g     O .bss	00000000000000a8 com20020_netdev_ops
0000000000000000 g     O .rodata	00000000000000a8 com20020_netdev_ops

So it is not powerpc specific.  (The powerpc toolchain (gcc 4.3.2m
binutils 2.19) was built by me from gnu sources, so it is not Debian
specific either.)

With your patch:

$ objdump -t com20020*.o | grep _ops
0000000000000000         *UND*	0000000000000000 com20020_netdev_ops
0000000000000000 g     O .rodata	00000000000000a8 com20020_netdev_ops

So, this could be a compiler bug?
-- 
Cheers,
Stephen Rothwell                    [email-masked]
http://www.canb.auug.org.au/~sfr/