From d137ff16e759f7c0a6acea318e5bd3c932082d79 Mon Sep 17 00:00:00 2001 From: kaiw Date: Wed, 21 Jul 2010 10:39:29 +0000 Subject: - Document that the *fsize() functions return a size of 1 for Elf types that don't have a fixed size. - The *fsize() functions should return a size of 1, for variable length types. - Redefine symbol ELF_T_LAST to match the current end of the list. Obtained from: elftoolchain MFC after: 1 month --- lib/libelf/libelf_data.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/libelf/libelf_data.c') diff --git a/lib/libelf/libelf_data.c b/lib/libelf/libelf_data.c index 7749300..8f88694 100644 --- a/lib/libelf/libelf_data.c +++ b/lib/libelf/libelf_data.c @@ -42,6 +42,10 @@ _libelf_xlate_shtype(uint32_t sht) return (ELF_T_SYM); case SHT_FINI_ARRAY: return (ELF_T_ADDR); +#if __FreeBSD_version >= 800062 + case SHT_GNU_HASH: + return (ELF_T_GNUHASH); +#endif case SHT_GROUP: return (ELF_T_WORD); case SHT_HASH: -- cgit v1.1