Michal Kubecek 9f71fbcde2 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 <mkubecek@suse.cz>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>
Link: https://lore.kernel.org/r/20230629102051.42E8360467@lion.mk-sys.cz
2023-07-10 09:52:28 +02:00
..
2023-06-27 15:05:41 -07:00
2023-01-30 16:27:46 -08:00
2023-01-30 16:27:46 -08:00
2023-06-27 11:12:55 -07:00
2023-07-10 09:52:28 +02:00
2023-02-01 09:15:18 -08:00
2023-02-23 09:21:44 +01:00
2023-06-07 10:03:23 -07:00
2023-03-23 23:18:56 +01:00
2022-04-22 12:32:01 +02:00