summaryrefslogtreecommitdiff
path: root/elfcpp/elfcpp.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2010-01-19 17:55:48 +0000
committerIan Lance Taylor <ian@airs.com>2010-01-19 17:55:48 +0000
commite8a151354bec08c94e32875c10bc8a10c68268b7 (patch)
tree3bb753fca4ee2d61ab506abe1ac868b6a1b65428 /elfcpp/elfcpp.h
parente5b68cff621511867f4cc6e70cf29c17fadb3f1d (diff)
downloadbinutils-redhat-e8a151354bec08c94e32875c10bc8a10c68268b7.tar.gz
elfcpp/:
* elfcpp.h (PN_XNUM): Define. gold/: * output.cc (Output_section_headers::do_sized_write): Write large segment count to sh_info field. (Output_file_header::do_sized_write): For large segment count, write PN_XNUM to e_phnum field.
Diffstat (limited to 'elfcpp/elfcpp.h')
-rw-r--r--elfcpp/elfcpp.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/elfcpp/elfcpp.h b/elfcpp/elfcpp.h
index 0b2c871d19..8ecbc0ae4c 100644
--- a/elfcpp/elfcpp.h
+++ b/elfcpp/elfcpp.h
@@ -302,6 +302,15 @@ enum EM
// Old MN10200 objects used 0xdead (EM_MN10200 is correct).
};
+// A special value found in the Ehdr e_phnum field.
+
+enum
+{
+ // Number of program segments stored in sh_info field of first
+ // section headre.
+ PN_XNUM = 0xffff
+};
+
// Special section indices.
enum