RE: [PATCH] [POWERPC] Optimize counting distinct entries in the relocation sections

2007-11-12 Thread Medve Emilian
Hello Paul, > Actually I notice that count_relocs is counting all relocs, not just > the R_PPC_REL24 ones, which are all that we actually care about in > sizing the PLT. And I would be willing to bet that every single > R_PPC_REL24 reloc has r_addend == 0. I'll count only the R_PPC_REL24 and I'

Re: [PATCH] [POWERPC] Optimize counting distinct entries in the relocation sections

2007-11-12 Thread Rusty Russell
On Monday 12 November 2007 17:00:43 Paul Mackerras wrote: > Emil Medve writes: > > (Not sure why the relocation tables could contain lots of duplicates and > > why they are not trimmed at compile time by the linker. In some test > > cases, out of 35K relocation entries only 1.5K were distinct/uniqu

Re: [PATCH] [POWERPC] Optimize counting distinct entries in the relocation sections

2007-11-11 Thread Paul Mackerras
Emil Medve writes: > (Not sure why the relocation tables could contain lots of duplicates and why > they are not trimmed at compile time by the linker. In some test cases, out of > 35K relocation entries only 1.5K were distinct/unique) Presumably you have lots of calls to the same function, or lo