From owner-svn-src-head@FreeBSD.ORG Tue Feb 3 06:12:13 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E7341106564A; Tue, 3 Feb 2009 06:12:13 +0000 (UTC) (envelope-from jkoshy@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D5C898FC1F; Tue, 3 Feb 2009 06:12:13 +0000 (UTC) (envelope-from jkoshy@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n136CDel019151; Tue, 3 Feb 2009 06:12:13 GMT (envelope-from jkoshy@svn.freebsd.org) Received: (from jkoshy@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n136CDef019150; Tue, 3 Feb 2009 06:12:13 GMT (envelope-from jkoshy@svn.freebsd.org) Message-Id: <200902030612.n136CDef019150@svn.freebsd.org> From: Joseph Koshy Date: Tue, 3 Feb 2009 06:12:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r188050 - head/sys/sys X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2009 06:12:14 -0000 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 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. */