[RFC][PATCH 1/3] ELF: Add constant PN_XNUM
Daisuke HATAYAMA
d.hatayama@jp.fujitsu.com
Fri Jan 15 02:45:00 GMT 2010
Add a new constant PN_XNUM which is defined to be 0xFFFF.
PN_XNUM is used for extended numbering of e_phnum field.
PN_XNUM is assigned into e_phnum field when the actual program header
size is 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
More information about the Binutils
mailing list