kpatch/kpatch-build
Seth Jennings ebf55f8614 add support for replacing section syms for unbundled sections
Right now, the test patch unnecessarily includes hrtimer_nanosleep()
because the call to do_nanosleep() generates a rela the references the
unbundled .sched.text section.  This section symbol is not currently
replaced by kpatch_replace_sections_syms() as it only replaces bundled
sections symbols.

This commit adds logic to kpatch_replace_sections_syms() to replace
unbundled section symbols as well by scanning the symbol table for
symbols that start at the rela entry's offset within the matching
section.

This allows for properly rela section correlation when the functions
have moved from an unbundled section to a bundled section.

Signed-off-by: Seth Jennings <sjenning@redhat.com>
2014-07-28 11:10:32 -05:00
..
insn insn: get it to compile in create-diff-object 2014-05-30 15:19:57 -05:00
create-diff-object.c add support for replacing section syms for unbundled sections 2014-07-28 11:10:32 -05:00
kpatch-build fixup review comments 2014-07-23 11:24:02 -05:00
list.h create-diff-object: create __mcount_loc section 2014-07-01 08:29:37 -05:00
lookup.c exclude UNDEF global syms from lookup_global_symbol 2014-06-02 20:34:37 -05:00
lookup.h merge add-patches-section functionality into create-obj-diff 2014-05-20 12:44:30 -05:00
Makefile insn: get it to compile in create-diff-object 2014-05-30 15:19:57 -05:00