[RFC][PATCH v2 0/4] readelf and libbfd: Add Extended Numbering Support for ELF corefiles

Ian Lance Taylor iant@google.com
Tue Jan 19 17:58:00 GMT 2010

I committed this patch to add support for PN_XNUM to gold.  Gold never
reads the number of program segments, so this just adds support for
writing out the right value in the unlikely event that gold ever
generates an executable with more than 0xffff segments.



2010-01-19  Ian Lance Taylor  <iant@google.com>

	* elfcpp.h (PN_XNUM): Define.


2010-01-19  Ian Lance Taylor  <iant@google.com>

	* 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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 1737 bytes
URL: <https://sourceware.org/pipermail/binutils/attachments/20100119/bd420a04/attachment.bin>

More information about the Binutils mailing list