mirror of
https://github.com/openharmony/third_party_elfutils.git
synced 2026-07-19 19:43:34 -04:00
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>
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2018-02-21 Mark Wielaard <mark@klomp.org>
|
||||
|
||||
* eblcheckreloctargettype.c (ebl_check_reloc_target_type): Accept
|
||||
SHT_NOTE.
|
||||
|
||||
2018-02-09 Joshua Watt <JPEWhacker@gmail.com>
|
||||
|
||||
* eblobjnote.c (ebl_object_note): Use FALLTHROUGH macro instead of
|
||||
|
||||
@@ -46,6 +46,7 @@ ebl_check_reloc_target_type (Ebl *ebl, Elf64_Word sh_type)
|
||||
case SHT_INIT_ARRAY:
|
||||
case SHT_FINI_ARRAY:
|
||||
case SHT_PREINIT_ARRAY:
|
||||
case SHT_NOTE:
|
||||
return true;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user