Hi, I stumbled over some issue of kgdb in combination with gcc 4.1 since kernel 2.6.16. The background can be found in [1]. It melts down that the default arch-dependent functions in kernel/kgdb.c got compiled in - and immediately optimised out again. The effect is, of course, lethal.
As a workaround I added "CFLAGS_kgdb.o += -fno-unit-at-a-time" to kernel/Makefile, but I'm not sure if this is the preferred solution here. Alternatives might be to move all default arch-stubs into a separate object file, thus giving the linker the chance again to handle them, or to use #ifndef KGDB_HAVE_ARCH_xxx constructs. Jan PS: Please CC me on reply. [1] http://gcc.gnu.org/ml/gcc-help/2006-05/msg00202.html
signature.asc
Description: OpenPGP digital signature
