summaryrefslogtreecommitdiffstats
path: root/libebl/libebl.h
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2014-05-19 16:52:56 +0200
committerMark Wielaard <mjw@redhat.com>2014-05-19 22:04:24 +0200
commit028d0ab0cc1cb5f96ee48feef966b7d8d56c6a8e (patch)
treea8217d678cede635782d0fe33413a3dc3ae206af /libebl/libebl.h
parent85482fc073442a056e0e3663eb454fa76d883271 (diff)
downloadandroid_external_elfutils-028d0ab0cc1cb5f96ee48feef966b7d8d56c6a8e.tar.gz
android_external_elfutils-028d0ab0cc1cb5f96ee48feef966b7d8d56c6a8e.tar.bz2
android_external_elfutils-028d0ab0cc1cb5f96ee48feef966b7d8d56c6a8e.zip
backends: Add ebl_check_reloc_target_type.
And implement for arm and ia64. Both have special section types that are valid targets for a reloc. Both refer to unwind data. elflint now just calls ebl_check_reloc_target_type instead of hard coding the expected section types. Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'libebl/libebl.h')
-rw-r--r--libebl/libebl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libebl/libebl.h b/libebl/libebl.h
index 50d6baab..d05751fa 100644
--- a/libebl/libebl.h
+++ b/libebl/libebl.h
@@ -179,6 +179,9 @@ extern bool ebl_check_object_attribute (Ebl *ebl, const char *vendor,
const char **tag_name,
const char **value_name);
+/* Check whether a section type is a valid reloc target. */
+extern bool ebl_check_reloc_target_type (Ebl *ebl, Elf64_Word sh_type);
+
/* Check section name for being that of a debug informatino section. */
extern bool ebl_debugscn_p (Ebl *ebl, const char *name);