kpatch/kpatch-build
Artem Savkov 8927b57509 create-diff-object: ignore .cold.* suffixes in is_bundleable()
While building a gcc-consprop patch from integration tests gcc8 would place a
__timekeeping_inject_sleeptime.constprop.18.cold.27 symbol into
.text.unlikely.__timekeeping_inject_sleeptime.constprop.18 section. Because
section name doesn't have the '.cold.27' suffix this symbol fails
is_bundleable() check while still being bundleable and later exits early in
kpatch_rename_mangled_functions() without renaming the corresponding patched
function. All of this results in a create-diff-object errror:

  ERROR: timekeeping.o: symbol changed sections: __timekeeping_inject_sleeptime.constprop.18.cold.27
  /home/asavkov/dev/kpatch/kpatch-build/create-diff-object: unreconcilable difference

Fix by ignoring .cold.* name suffix in is_bundleable() for.text.unlikely
sections.

Signed-off-by: Artem Savkov <asavkov@redhat.com>
2018-05-30 10:15:10 +02:00
..
gcc-plugins gcc-plugin: run the plugin at an earlier pass 2018-03-16 17:16:17 -05:00
insn insn: get it to compile in create-diff-object 2014-05-30 15:19:57 -05:00
create-diff-object.c create-diff-object: ignore .cold.* suffixes in is_bundleable() 2018-05-30 10:15:10 +02:00
create-klp-module.c create-klp-module: Properly align merged .parainstructions sections 2018-05-18 16:11:41 -05:00
create-kpatch-module.c Fix multiple sign-compare warnings 2018-04-13 16:26:06 +02:00
kpatch-build kpatch-build: fix Ubuntu kernel detection on successive retries 2018-04-12 18:29:18 +02:00
kpatch-elf.c Fix multiple sign-compare warnings 2018-04-13 16:26:06 +02:00
kpatch-elf.h Fix multiple sign-compare warnings 2018-04-13 16:26:06 +02:00
kpatch-gcc Prepare for built-in.o -> built-in.a rename 2018-03-20 10:46:50 +01:00
kpatch-intermediate.h create-klp-module: get rid of redundant kpatch_relocation.offset field 2017-11-09 19:16:14 -06:00
list.h new .fixup group size algorithm 2014-09-15 14:54:57 -05:00
log.h log: include error.h 2017-01-23 12:42:35 -08:00
lookup.c lookup: fix discarded symbol handling for all kernel versions 2018-03-21 13:19:31 -05:00
lookup.h support dup file+symbol 2017-02-04 09:37:18 +08:00
Makefile ppc64le: fix gcc-plugin installation 2018-04-19 10:16:37 +02:00