kpatch/kpatch-build
Josh Poimboeuf 7e48138185 lookup: Simplify first loop in symtab_read()
symtab_read() is quite fragile because it relies on the fact that the
first and second loops have the exact same conditions.

Instead just change the first loop to count all the lines in the file,
to get an upper bound for allocation.  It's ok to over-allocate
slightly.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
2020-04-06 15:18:58 -05:00
..
gcc-plugins gcc-plugin: Include additional header for GCC 8 2018-05-30 19:39:48 +05:30
insn
Makefile kpatch-build/Makefile: Skip build insn/plugin with -Wconversion 2020-01-23 12:59:38 +05:30
create-diff-object.c create-diff-object: reduce indentation in kpatch_create_patches_sections() 2020-04-06 15:18:58 -05:00
create-klp-module.c create-klp-module: Fix -Wconversion warnings 2020-02-11 19:25:04 +05:30
create-kpatch-module.c create-kpatch-module: Fix -Wconversion warnings 2020-02-11 19:25:10 +05:30
kpatch-build kpatch-build: replace all '-' to '_' in KOBJFILE_NAME 2019-12-30 17:48:14 +08:00
kpatch-elf.c kpatch-build: Allow function to have multiple child functions 2020-03-30 14:14:17 +01:00
kpatch-elf.h kpatch-build: Allow function to have multiple child functions 2020-03-30 14:14:17 +01:00
kpatch-gcc Making kpatch-build compatible with custom gcc names 2019-05-09 19:15:11 +02:00
kpatch-intermediate.h create-diff-object: Fix -Wconversion warnings 2020-02-10 09:07:21 +05:30
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 lookup: Simplify first loop in symtab_read() 2020-04-06 15:18:58 -05:00
lookup.h kpatch-build: use symbol table instead of kobject 2018-05-18 09:24:40 +02:00