This is the mail archive of the binutils@sources.redhat.com 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 to the way BFD reads overlaid ELF sections


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


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