about summary refs log tree commit diff
path: root/elf/elf.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2010-01-07 18:48:32 -0800
committerRoland McGrath <roland@redhat.com>2010-01-07 18:48:32 -0800
commitd5ea695b42aecd48a329756a8e93228d64714d17 (patch)
tree3f2f266adffd5d58dfdd2189d3595d91ac9a2a4c /elf/elf.h
parent4472e1de3020a95d4823a9a209b02a250adc7baa (diff)
downloadglibc-d5ea695b42aecd48a329756a8e93228d64714d17.tar.gz
glibc-d5ea695b42aecd48a329756a8e93228d64714d17.tar.xz
glibc-d5ea695b42aecd48a329756a8e93228d64714d17.zip
Add new ELF constant PN_XNUM.
Diffstat (limited to 'elf/elf.h')
-rw-r--r--elf/elf.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/elf/elf.h b/elf/elf.h
index c772ff41ad..1bc8ef3489 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -1,5 +1,5 @@
 /* This file defines standard ELF types, structures, and macros.
-   Copyright (C) 1995-2003,2004,2005,2006,2007,2008,2009
+   Copyright (C) 1995-2003,2004,2005,2006,2007,2008,2009,2010
 	Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
@@ -558,6 +558,12 @@ typedef struct
   Elf64_Xword	p_align;		/* Segment alignment */
 } Elf64_Phdr;
 
+/* Special value for e_phnum.  This indicates that the real number of
+   program headers is too large to fit into e_phnum.  Instead the real
+   value is in the field sh_info of section 0.  */
+
+#define PN_XNUM		0xffff
+
 /* Legal values for p_type (segment type).  */
 
 #define	PT_NULL		0		/* Program header table entry unused */