]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libebl: ebl_object_note print 32bit annobin address ranges correctly
authorMark Wielaard <mark@klomp.org>
Wed, 21 Feb 2024 20:59:14 +0000 (21:59 +0100)
committerMark Wielaard <mark@klomp.org>
Tue, 27 Feb 2024 14:56:36 +0000 (15:56 +0100)
commit22085a89e31b6d4a9c528210a4c959a46a4b83f5
treece08b45c9124862e616aa2c0df0a9331ad351e0a
parentbdccd2c6d3c981bbc9296676f9f8740b91549a52
libebl: ebl_object_note print 32bit annobin address ranges correctly

Annobin address ranges were always printed as if they were 64bit wide
because addr_size was set to twice the size. This was done because the
note description size should contain two addresses. Fix this by setting
the address size to just one address and then check that descsz is
twice that.

* libebl/eblobjnote.c (ebl_object_note): Set addr_size to one
ELF_T_ADDR. Check descsz equals two times addr_size.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libebl/eblobjnote.c