kpatch/kpatch-build
Johannes Erdfelt 07433e98c0 kpatch-cc: fix stripping of source tree prefix
To support building out-of-tree kernel modules, the source tree prefix
is attempted to be stripped from change object file paths to make them
relative. However, if the path is already relative, the change can
strip a substring instead, resulting in build errors.

Ensure just the prefix is stripped instead of any substring.

Fixes: #1282
Fixes: 51a8fad34f ("Add support for building out-of-tree modules")
2022-07-27 10:29:36 -07:00
..
gcc-plugins gcc-plugin: GCC 10 - update local/non local insn names 2020-06-12 13:27:06 +05:30
insn insn: get it to compile in create-diff-object 2014-05-30 15:19:57 -05:00
Makefile kpatch/s390: Enable kpatch build support 2022-05-20 15:50:29 +02:00
create-diff-object.c create-diff-object: add support for .return_sites section (x86) 2022-07-16 15:46:54 -06:00
create-klp-module.c create-diff-object: rename "sec" -> "relasec" for rela sections 2022-05-11 17:00:25 -07:00
create-kpatch-module.c kpatch-elf: pass new ELF output file mode to kpatch_write_output_elf() 2020-09-25 09:30:13 -04:00
kpatch-build kpatch/s390: Add initial support for kpatch 2022-05-20 15:50:29 +02:00
kpatch-cc kpatch-cc: fix stripping of source tree prefix 2022-07-27 10:29:36 -07:00
kpatch-elf.c kpatch/s390: Add initial support for kpatch 2022-05-20 15:50:29 +02:00
kpatch-elf.h create-diff-object: move addend math to a new function 2022-05-11 17:02:04 -07:00
kpatch-intermediate.h lookup: rename 'pos' to 'sympos' 2020-04-06 15:18:58 -05:00
kpatch.h kpatch-build: add exit status enum 2018-06-15 07:11:48 -04:00
list.h new .fixup group size algorithm 2014-09-15 14:54:57 -05:00
log.h kpatch-build: add exit status enum 2018-06-15 07:11:48 -04:00
lookup.c lookup: fix symtab parsing 2022-05-20 15:50:29 +02:00
lookup.h Switch to per-file lookup table pointers. 2021-08-17 09:37:44 +02:00