Linus Torvalds wrote: > You know the drill. My build errors out at the end with: CC init/version.o LD init/built-in.o LD .tmp_vmlinux1 KSYM .tmp_kallsyms1.S AS .tmp_kallsyms1.o LD .tmp_vmlinux2 KSYM .tmp_kallsyms2.S AS .tmp_kallsyms2.o LD vmlinux SYSMAP System.map SYSMAP .tmp_System.map Inconsistent kallsyms data Try setting CONFIG_KALLSYMS_EXTRA_PASS make: *** [vmlinux] Error 1 Comparing .tmp_kallsyms1 with .tmp_kallsyms2 gives: @@ -10368,8 +10368,8 @@ T ipv6_ext_hdr PTR 0xc02fdf24 T ipv6_skip_exthdr PTR 0xc02fdf6a T sha_transform PTR 0xc02fe084 T sha_init PTR 0xc02fe228 -T __sched_text_start PTR 0xc02fe24f t __down PTR 0xc02fe250 +T __sched_text_start PTR 0xc02fe250 t __down_interruptible PTR 0xc02fe32e T __down_failed PTR 0xc02fe448 T __down_failed_interruptible PTR 0xc02fe458 As you can see, the symbol "__sched_text_start" changes position with "__down" from the first to the second pass. This is a known bug that the attached patch by Sam Ravnborg fixes. I really don't know if this is the proper fix or not. Maybe Sam (CC'ed) can say better if this is more of a band aid or the correct solution. Note that this is only a problem because the change in position makes the compression algorithm produce a different result, with a different size. The algorithm doesn't use all the symbols to optimize the token table, but instead it samples 1024 symbols to speed up the calculations. In one case "__down" is the lucky sample, in the other it is "__sched_text_start". Given that my symbol table has 11300 symbols, there is a ~2/11 probability of being hit by this bug. The larger the symbol table the less likely it is to happen. If the token table would be kept from the first to the second pass, not only it would be faster, but also changing a symbol position would not give inconsistent results, because the resulting size would be the same. I'll try to put together a patch to do this, if you feel this is the Right Thing (tm). -- Paulo Marques - www.grupopie.com An expert is a person who has made all the mistakes that can be made in a very narrow field. Niels Bohr (1885 - 1962)