This is the mail archive of the binutils@sourceware.cygnus.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]

Re: .dynsym pain


On Wed, Jul 14, 1999 at 01:00:18AM -0700, Mark Mitchell wrote:
> But, I'm nervous about the need for *two* sorts.  The reason for the
> first sort is to calculate the size of the GOT:

Yep.

> So, if we resort, and the GOT gets bigger, that's very bad.  I assume
> that this can't happen.

It surely shouldn't.  It should only shrink.

> Perhaps you could add an assertion to check
> that this situation does not occur?  Just checking `elf_hash_table
> (info)->dynsymcount - g->global_gotsym->dynindx' before and after the
> second sort should do it.

Yes, I'll add something.  I don't think that'll do it since
the versioning code doesn't decrement dynsymcount, so I just
write a new value at the end of renumber_dynsym.

But saving a g->global_gotsize should do the trick.


r~

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