Date: Tue, 3 Feb 2009 06:12:13 +0000 (UTC) From: Joseph Koshy <jkoshy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r188050 - head/sys/sys Message-ID: <200902030612.n136CDef019150@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jkoshy Date: Tue Feb 3 06:12:13 2009 New Revision: 188050 URL: http://svn.freebsd.org/changeset/base/188050 Log: 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> Modified: head/sys/sys/elf_common.h Modified: head/sys/sys/elf_common.h ============================================================================== --- head/sys/sys/elf_common.h Tue Feb 3 06:08:58 2009 (r188049) +++ head/sys/sys/elf_common.h Tue Feb 3 06:12:13 2009 (r188050) @@ -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. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902030612.n136CDef019150>