]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libebl: Allow SHT_NOTE as relocation target type.
authorMark Wielaard <mark@klomp.org>
Wed, 21 Feb 2018 15:31:44 +0000 (16:31 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 22 Feb 2018 12:16:46 +0000 (13:16 +0100)
commitebc1768e4451e30b19c8e1644515e66de8da4b4d
treebb158f67300129d9aa9279f37dcd5011c2dc6c3b
parent8e5e78927ee319816eb7a74f870671d21e762bfc
libebl: Allow SHT_NOTE as relocation target type.

eu-elflint uses ebl_check_reloc_target_type to determine whether a section
is a valid relocation target. In Fedora rawhide there are new ELF notes
(annobin) which have relocations against them in ET_REL files. eu-elflint
currently flags these as invalid. It looks like that is not correct.
I cannot find any reason an SHT_NOTE section cannot have relocations
against it. So this patch allows them.

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