kpatch/kpatch-build
Josh Poimboeuf 87939db272 create-diff-object: skip dynrelas for function pointers to new functions
With #755, we started using dynrelas for function pointers.  However,
this behavior only makes sense for function pointers to existing
functions.  For function pointers to *new* functions, just use a normal
rela.

The 'function-ptr-new' unit test is from the following patch:

  https://github.com/dynup/kpatch/files/1927198/new-static-callback.patch.txt

Fixes #834.

Fixes: 495e619750 ("kpatch-build, x86: do not use the patched functions as callbacks directly")
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
2018-04-19 07:56:12 -05: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: skip dynrelas for function pointers to new functions 2018-04-19 07:56:12 -05:00
create-klp-module.c Fix multiple sign-compare warnings 2018-04-13 16:26:06 +02: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 kpatch-build: add -Wsign-compare to CFLAGS 2018-04-13 16:27:23 +02:00