summaryrefslogtreecommitdiffstats
path: root/lib/libelf/libelf_data.c
diff options
context:
space:
mode:
authorkaiw <kaiw@FreeBSD.org>2010-07-21 10:39:29 +0000
committerkaiw <kaiw@FreeBSD.org>2010-07-21 10:39:29 +0000
commitd137ff16e759f7c0a6acea318e5bd3c932082d79 (patch)
tree9e3351c461c35ef9a25f30454c83f6e09b0a3ccc /lib/libelf/libelf_data.c
parent49a7d97ce43a82f9cfa863a35ca5cc928d7caf1e (diff)
downloadFreeBSD-src-d137ff16e759f7c0a6acea318e5bd3c932082d79.zip
FreeBSD-src-d137ff16e759f7c0a6acea318e5bd3c932082d79.tar.gz
- 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
Diffstat (limited to 'lib/libelf/libelf_data.c')
-rw-r--r--lib/libelf/libelf_data.c4
1 files changed, 4 insertions, 0 deletions
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:
OpenPOWER on IntegriCloud