Re: [patch] kksymoops-2.5.38-C9

From: Gianni Tedesco (gianni@ecsc.co.uk)
Date: Wed Oct 02 2002 - 06:16:05 EST


On Thu, 2002-09-26 at 15:01, Ingo Molnar wrote:
> --- linux/Makefile.orig Thu Sep 26 15:26:53 2002
> +++ linux/Makefile Thu Sep 26 15:27:16 2002
> @@ -138,6 +138,7 @@
> MAKEFILES = $(TOPDIR)/.config
> GENKSYMS = /sbin/genksyms
> DEPMOD = /sbin/depmod
> +KALLSYMS = /sbin/kallsyms
> PERL = perl
> MODFLAGS = -DMODULE
> CFLAGS_MODULE = $(MODFLAGS)
> @@ -291,32 +292,64 @@
> vmlinux-objs := $(HEAD) $(INIT) $(CORE_FILES) $(LIBS) $(DRIVERS) $(NETWORKS)

Ingo, this breaks cross compiles because kallsyms expects a host
executable:

$ /sbin/kallsyms .tmp_vmlinux > .tmp_kallsyms.o
.tmp_vmlinux: ELF file .tmp_vmlinux not for this architecture

You can't even do $(CROSS_COMPILE)kallsyms because that isn't part of
most peoples toolchains. (and /sbin might not be in the $PATH).

I'm not sure what kallsyms does *exactly* but it sounds like the same
functionality can be had from objcopy...

-- 
// Gianni Tedesco (gianni at ecsc dot co dot uk)
lynx --source www.scaramanga.co.uk/gianni-at-ecsc.asc | gpg --import
8646BE7D: 6D9F 2287 870E A2C9 8F60 3A3C 91B5 7669 8646 BE7D


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



This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:00:33 EST