This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[RFC][PATCH v2 1/4] elf: Add PN_XNUM constant
- From: Daisuke HATAYAMA <d dot hatayama at jp dot fujitsu dot com>
- To: binutils at sourceware dot org
- Cc: amodra at gmail dot com, iant at google dot com, vapier at gentoo dot org, dan at codesourcery dot com
- Date: Mon, 18 Jan 2010 16:45:50 +0900 (JST)
- Subject: [RFC][PATCH v2 1/4] elf: Add PN_XNUM constant
- References: <20100118.164347.193713146.d.hatayama@jp.fujitsu.com>
We add new constant PN_XNUM which is a value for e_phnum field of ELF
header. It is defined as 0xffff. PN_XNUM is assigned into e_phnum
field when the actual program header size is equal to or larger than
0xffff(65535).
---
include/elf/common.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/include/elf/common.h b/include/elf/common.h
index 3788395..de1a99d 100644
--- a/include/elf/common.h
+++ b/include/elf/common.h
@@ -403,6 +403,9 @@
#define EV_NONE 0 /* Invalid ELF version */
#define EV_CURRENT 1 /* Current version */
+/* Value for e_phnum. */
+#define PN_XNUM 0xffff /* Extended numbering */
+
/* Values for program header, p_type field. */
#define PT_NULL 0 /* Program header table entry unused */
--
1.6.5.1