mirror of
https://github.com/dynup/kpatch
synced 2024-12-23 13:42:09 +00:00
145d1289dc
The user's environment might have TEMPDIR exported. If so, then kpatch-build dies with a bogus "invalid ancestor" error. If you turn those bogus errors into warnings, then the script goes on to incorrectly put into the generated .ko file every single function that was compiled in the *original* kernel build, thereby producing an immense .ko file with more than 64k sections that the linux kernel cannot load. This fix makes sure that TEMPDIR is unexported on the build of the original kernel. Actually, this fix uses a separate KPATCH_GCC_TEMPDIR variable, so that if the kernel build is interrupted, the cleanup function in the kpatch-kbuild script will still have TEMPDIR set correctly. Signed-off-by: Martin Carroll <martin.carroll@alcatel-lucent.com> |
||
---|---|---|
.. | ||
insn | ||
create-diff-object.c | ||
kpatch-build | ||
kpatch-elf.c | ||
kpatch-elf.h | ||
kpatch-gcc | ||
list.h | ||
log.h | ||
lookup.c | ||
lookup.h | ||
Makefile |