libiberty patch committed: Fix writing ELF files with many sections

Ian Lance Taylor iant@google.com
Fri Sep 19 15:25:00 GMT 2014


This patch to libiberty fixes writing out ELF files that have a large
number of sections (more than 0xFF00).  We already handled reading those
files correctly; this fixes writing them, for absurdly large programs
when using LTO.  Bootstrapped and ran testsuite on
x86_64-unknown-linux-gnu.  This patch was tested on an absurdly large
program by Honza.  Committed to mainline.

Ian


2014-09-19  Ian Lance Taylor  <iant@google.com>

	* simple-object-elf.c (simple_object_elf_write_ehdr): Correctly
	handle objects with more than SHN_LORESERVE sections.
	(simple_object_elf_write_shdr): Add sh_link parameter.
	(simple_object_elf_write_to_file): Correctly handle objects with
	more than SHN_LORESERVE sections.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 3617 bytes
Desc: patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140919/736f7115/attachment.bin>


More information about the Gcc-patches mailing list