Introduce a C type representing the header for GNU-style hash table

sections.  These ELF sections are generated by newer versions of
GNU binutils.

Reviewed by:		kaiw, Ali Bahrami <ali dot bahrami at sun dot com>
This commit is contained in:
jkoshy 2009-02-03 06:12:13 +00:00
parent 7c53da752d
commit a6e2805c4b

@ -48,6 +48,17 @@ typedef struct {
u_int32_t n_type; /* Type of this note. */
} Elf_Note;
/*
* The header for GNU-style hash sections.
*/
typedef struct {
u_int32_t gh_nbuckets; /* Number of hash buckets. */
u_int32_t gh_symndx; /* First visible symbol in .dynsym. */
u_int32_t gh_maskwords; /* #maskwords used in bloom filter. */
u_int32_t gh_shift2; /* Bloom filter shift count. */
} Elf_GNU_Hash_Header;
/* Indexes into the e_ident array. Keep synced with
http://www.sco.com/developers/gabi/latest/ch4.eheader.html */
#define EI_MAG0 0 /* Magic number, byte 0. */