[PATCH][GOLD] Avoid linker crashing when merge sections have uneven sizes.
Ian Lance Taylor
iant@google.com
Thu Apr 8 23:54:00 GMT 2010
"Doug Kwan (關振德)" <dougkwan@google.com> writes:
> This patch fixes a problem exposed by bootstrapping gcc. libjava
> contains objects with unevenly sized merge sections, whose sections
> sizes are not multiples of their entsizes.
That sounds like a bug somewhere.
> 2010-04-08 Doug Kwan <dougkwan@google.com>
>
> * merge.cc (Output_merge_data::set_final_data_size): Handle empty
> Output_merge_data.
> * output.cc (Output_section::add_merge_input_section): Simplify
> code and return status of Output_merge_base::add_input_section.
> Update merge section map only if Output_merge_base::add_input_section
> returns true.
This is OK.
Thanks.
Ian
More information about the Binutils
mailing list