Re: [patch] Fix separate-debug with non-unique section names (PR 11409)

Daniel Jacobowitz
2010-03-24T20:43:00Z

On Wed, Mar 24, 2010 at 09:32:52PM +0100, Jan Kratochvil wrote:
> > else if (section j's name is not present in separate file)
> or main?
> > j++, continue

You're right, I meant main. Even with that in your perl script fixed,
it still won't work.

> .dynstr is present in both files and on different places from my real
> prelinked /bin/bash example.

Maybe this happened because prelink does special magic with dynamic
sections to create space. I don't understand what else could have
done it.

I don't know how to correlate two lists of sections that are only mostly
the same. I guess, you could add a fallback to the algorithm I
proposed: if each file only has one section with that name, use it,
and otherwise skip the section. We're really guessing at this point though!

--
Daniel Jacobowitz
CodeSourcery