Patch to the way BFD reads overlaid ELF sections

Richard Sandiford rsandifo@redhat.com
Tue May 7 03:21:00 GMT 2002


Alan Modra <amodra@bigpond.net.au> writes:
> > After the patch we'd only consider segments 2 and 3 to match
> > offset-wise.  We still need the VMA check to distinguish
> > between them.
> 
> I still don't like removing the p_memsz test, even though I can't
> immediately think of a case where removing it would cause a
> problem.

OK.

> One way of solving the problem you found with zero file size overlay
> sections, would be to keep track of section assignments to segments
> via another elf_tdata structure, and not reassign to the same place.
> Whether it's worth doing is debatable..

One day, maybe ;).

For now, I guess the current behaviour is expected.  I'll change
the overlay-size test to match.

Richard



More information about the Binutils mailing list