svn commit: r188050 - head/sys/sys

Joseph Koshy jkoshy at FreeBSD.org
Mon Feb 2 22:12:14 PST 2009


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. */


More information about the svn-src-head mailing list