summaryrefslogtreecommitdiffstats
path: root/libebl/libebl.h
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2018-08-01 16:51:03 +0200
committerMark Wielaard <[email protected]>2018-09-13 14:30:30 +0200
commit68e8b84743bdb389776e3aa2bae27aba7f435fdb (patch)
tree57b5c8ff6a38c61e0c7d63dc4b0bc234ef011ebb /libebl/libebl.h
parent19756e7fb614831f4a5f5ff5b996675fae638782 (diff)
libebl: Use elf_getshdrstrndx in ebl_section_strip_p.
The ebl_section_strip_p function used the Ehdr e_shstrndx field to get at the name of the (debug) sections. This is not correct if there are more than SHN_LORESERVE sections. Use elf_getshdrstrndx to get at the shstrtab section. And drop the Ehdr argument that isn't necessary anymore. Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'libebl/libebl.h')
-rw-r--r--libebl/libebl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libebl/libebl.h b/libebl/libebl.h
index 0e1f41be..5abc02d8 100644
--- a/libebl/libebl.h
+++ b/libebl/libebl.h
@@ -205,7 +205,7 @@ extern bool ebl_none_reloc_p (Ebl *ebl, int reloc);
extern bool ebl_relative_reloc_p (Ebl *ebl, int reloc);
/* Check whether section should be stripped. */
-extern bool ebl_section_strip_p (Ebl *ebl, const GElf_Ehdr *ehdr,
+extern bool ebl_section_strip_p (Ebl *ebl,
const GElf_Shdr *shdr, const char *name,
bool remove_comment, bool only_remove_debug);