This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: gold patch: Don't try to merge empty input sections
Daniel Jacobowitz <drow@false.org> writes:
> On Tue, Jul 22, 2008 at 01:12:00AM -0700, Ian Lance Taylor wrote:
>> When gold saw an empty merge input section it would add it to the
>> merge data for the output section. Unfortunately an empty input
>> section would have no maps, and this would cause a crash in
>> Output_section::starting_output_address looking for the position of
>> the input section in the output section. There is nothing to merge
>> for an empty merge input section, so I patched the code to simply
>> handle it as an ordinary input section. I committed this patch.
>
> Is their alignment relevant?
It will be taken into account, as it will be handled as an ordinary
input section.
Ian