On Tue, Jun 05, 2007 at 07:35:02AM +0200, Sam Ravnborg wrote:
> > WARNING: drivers/built-in.o(.data.rel+0x1a80): Section mismatch: reference 
> > to .init.text:serial8250_console_setup (between 'serial8250_console' and 
> > '__param_arr_probe_rsa')

I wondered why this one showed up on alpha but nowhere else.
We already whitelist (do not warn about) references to .init.text from
variables named *_console IFF the variable is placed in section .data

But from the above we can see that serial8250_console is placed in .data.rel
Now I wonder why the alpha toolchain suddenly uses a .data.rel section.
The exact commandline to build the .c file is:

alpha-unknown-linux-gnu-gcc -Wp,-MD,drivers/serial/.8250.o.d  -nostdinc 
-isystem 
/opt/crosstool/gcc-4.1.0-glibc-2.3.6/alpha-unknown-linux-gnu/lib/gcc/alpha-unknown-linux-gnu/4.1.0/include
 -D__KERNEL__ -Iinclude -Iinclude2 -I/home/sam/kernel/kbuild.git/include 
-include include/linux/autoconf.h -I/home/sam/kernel/kbuild.git/drivers/serial 
-Idrivers/serial -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs 
-fno-strict-aliasing -fno-common -O2 -pipe -mno-fp-regs -ffixed-8 -msmall-data 
-mcpu=ev6 -Wa,-mev6 -fomit-frame-pointer -fno-stack-protector 
-Wdeclaration-after-statement -Wno-pointer-sign  -D"KBUILD_STR(s)=#s" 
-D"KBUILD_BASENAME=KBUILD_STR(8250)"  -D"KBUILD_MODNAME=KBUILD_STR(8250)" -c -o 
drivers/serial/8250.o /home/sam/kernel/kbuild.git/drivers/serial/8250.c

No use of -PIC or somethign like that.

Then I tried to reproduce it here - no luck.
I do not see the warning from serial/8250.o here?

I thought that I had all warnings reproduced but in the noise I must have
missed that I did not reproduce the 8250.o warning.

I will consider my patch for 8250.c bad and will drop it.
The others I will forward to akpm.

Anyone that can explain why alpha uses .data.rel in the above case -
but not with my toolchain?

$> gcc --version
alpha-unknown-linux-gnu-gcc (GCC) 4.1.0
Copyright (C) 2006 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.

        Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to