libiberty patch committed: Fix writing ELF files with many sections
Ian Lance Taylor
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.
2014-09-19 Ian Lance Taylor <firstname.lastname@example.org>
* 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...
Size: 3617 bytes
More information about the Gcc-patches