]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libebl: Remove Ebl struct size check and MODVERSION string.
authorMark Wielaard <mark@klomp.org>
Wed, 10 Jun 2020 18:55:58 +0000 (20:55 +0200)
committerMark Wielaard <mark@klomp.org>
Wed, 10 Jun 2020 19:01:33 +0000 (21:01 +0200)
commit27a388bdd21e6bc1a27f111b803b7903b8851606
tree852936990905cc4a40a97e1fc1b2473f9b1ddadb
parent815fe154e78c715ed2f467e8d17fac17e4255753
libebl: Remove Ebl struct size check and MODVERSION string.

We used to do several sanity checks when the ebl backend libraries
were loaded to make sure there was no version mismatch. When initializing
the backend we passed the current Ebl struct size so the library could
check it supported the given Ebl struct and we checked that the init
method returned the correct build time module version string. Neither
are necessary now that the backends are builtin.

Remove both the struct size check and the MODVERSION string (which
wasn't actually checked anymore). Make the init function return the
given Ebl handle or NULL on error (no init function currently indicates
any error).

Signed-off-by: Mark Wielaard <mark@klomp.org>
23 files changed:
ChangeLog
backends/ChangeLog
backends/aarch64_init.c
backends/alpha_init.c
backends/arm_init.c
backends/bpf_init.c
backends/csky_init.c
backends/i386_init.c
backends/ia64_init.c
backends/libebl_CPU.h
backends/m68k_init.c
backends/ppc64_init.c
backends/ppc_init.c
backends/riscv_init.c
backends/s390_init.c
backends/sh_init.c
backends/sparc_init.c
backends/tilegx_init.c
backends/x86_64_init.c
configure.ac
libebl/ChangeLog
libebl/eblopenbackend.c
libebl/libeblP.h