diff options
author | Ian Lance Taylor <ian@airs.com> | 2010-01-19 17:55:49 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2010-01-19 17:55:49 +0000 |
commit | 5696ab0b73cb827e7b3636255694d1fe61c89a32 (patch) | |
tree | dda1642631daec50281a4603f4ee99ccdffe6787 /elfcpp/elfcpp.h | |
parent | 2046a35d20ffeb5cfeb1df687925b1fbedb87dcf (diff) | |
download | gdb-5696ab0b73cb827e7b3636255694d1fe61c89a32.zip gdb-5696ab0b73cb827e7b3636255694d1fe61c89a32.tar.gz gdb-5696ab0b73cb827e7b3636255694d1fe61c89a32.tar.bz2 |
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.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/elfcpp/elfcpp.h b/elfcpp/elfcpp.h index 0b2c871..8ecbc0a 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 |