Module with 36K relocation entries

Medve Emilian-EMMEDVE1 Emilian.Medve at
Fri Nov 2 10:34:54 EST 2007


I have module with 36K relocation entries (I know, I know, how could
that be...) and the count_relocs() function takes ~17 seconds to crunch
through the relocation table from the .rela.text section. I don't think
I can reduce the number of entries in the relocation table (can I?) so
I'm thinking at improving the performance of count_relocs() (currently
O(n^2)). Does anybody have a simpler idea? Does anyone have any
constructive suggestion on how to improve the situation?

Thank you,

More information about the Linuxppc-dev mailing list