This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][GOLD] Avoid linker crashing when merge sections have uneven sizes.


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]