RE: heads up: apparent GAS bug in current (CVS) binutils

Luck, Tony
2005-05-17T20:48:51Z

>+++ linux/arch/ia64/kernel/smpboot.c 2005-05-13
>-struct pt_regs * __devinit idle_regs(struct pt_regs *regs)
>+struct pt_regs *
>+__devinit __comdatfunc (idle_regs)
>+idle_regs(struct pt_regs *regs)

>+++ linux/kernel/fork.c 2005-05-13 13:19:40.000000000 -0700
>-struct pt_regs * __devinit __attribute__((weak))
>idle_regs(struct pt_regs *regs)
>+struct pt_regs *
>+__devinit __comdatfunc (idle_regs)
>+idle_regs(struct pt_regs *regs)

So is there some deeper magic that I don't understand, or is this
wrong? After this patch is applied, both of these definitions look
identical to me. So how does the linker know which one to use?

-Tony