aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_prog_array_init.c
diff options
context:
space:
mode:
authorMichal Kubecek <[email protected]>2023-06-29 12:05:05 +0200
committerPeter Zijlstra <[email protected]>2023-07-10 09:52:28 +0200
commit9f71fbcde2820f2af4658313e808cf1e579190a4 (patch)
tree62dd02880590bbae690e95f95a5ced27a0cb2617 /tools/testing/selftests/bpf/progs/test_prog_array_init.c
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 (diff)
objtool: initialize all of struct elf
Function elf_open_read() only zero initializes the initial part of allocated struct elf; num_relocs member was recently added outside the zeroed part so that it was left uninitialized, resulting in build failures on some systems. The partial initialization is a relic of times when struct elf had large hash tables embedded. This is no longer the case so remove the trap and initialize the whole structure instead. Fixes: eb0481bbc4ce ("objtool: Fix reloc_hash size") Signed-off-by: Michal Kubecek <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Josh Poimboeuf <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_prog_array_init.c')
0 files changed, 0 insertions, 0 deletions