kpatch/kpatch-build
Joe Lawrence ff78bad23b kpatch-build: remove localentry data from ppc64le symtab
commit f8213c87f6 ("lookup: Fix format string for symtab_read() on
PPC64LE") fixed the symbol table lookup when readelf adds ppc64le
"[<localentry>: 8]" info for functions like so:

  23: 0000000000000008    96 FUNC    LOCAL  DEFAULT [<localentry>: 8]    4 cmdline_proc_show

however, it seems that readelf 2.30-57.el8 displays this in a slightly
different format:

  24493: c000000000587970    96 FUNC    LOCAL  DEFAULT    2 cmdline_proc_show    [<localentry>: 8]

Instead of adding more cases to kpatch-build's lookup.c scanf format,
let's just delete this information from the symtab file with a quick and
dirty sed regex.  This allows us to handle both observed cases (and
perhaps others) while removing the arch-specific scanf formatting in
lookup.c

Fixes: f8213c87f6 ("lookup: Fix format string for symtab_read() on PPC64LE")
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
2019-06-12 10:56:06 -04:00
..
gcc-plugins gcc-plugin: Include additional header for GCC 8 2018-05-30 19:39:48 +05:30
insn
Makefile ppc64le: fix gcc-plugin installation 2018-04-19 10:16:37 +02:00
create-diff-object.c kpatch-build: ensure that .altinstr_replacement section is included 2019-05-17 10:31:04 -04:00
create-klp-module.c fix memleak in the create-klp-module.c 2019-04-26 11:37:19 +08:00
create-kpatch-module.c Fix multiple sign-compare warnings 2018-04-13 16:26:06 +02:00
kpatch-build kpatch-build: remove localentry data from ppc64le symtab 2019-06-12 10:56:06 -04:00
kpatch-elf.c kpatch-elf: fix Segmentation fault when d_type not set properly 2019-06-03 11:29:59 +08:00
kpatch-elf.h create-diff-object: add symbol relations 2018-07-11 09:57:31 +02:00
kpatch-gcc Making kpatch-build compatible with custom gcc names 2019-05-09 19:15:11 +02:00
kpatch-intermediate.h create-klp-module: get rid of redundant kpatch_relocation.offset field 2017-11-09 19:16:14 -06:00
kpatch.h kpatch-build: add exit status enum 2018-06-15 07:11:48 -04:00
list.h
log.h kpatch-build: add exit status enum 2018-06-15 07:11:48 -04:00
lookup.c kpatch-build: remove localentry data from ppc64le symtab 2019-06-12 10:56:06 -04:00
lookup.h kpatch-build: use symbol table instead of kobject 2018-05-18 09:24:40 +02:00