[PATCH] ld: pe: Improve performance of object file exclude symbol directives

Nick Clifton nickc@redhat.com
Tue Sep 6 13:06:44 GMT 2022


Hi Jan,

> Well, first I was thinking of a hybrid approach - double until reaching 1024,
> then increment further by 1024. But then this seemed to be going a little too
> far, so I suggested the simpler alternative. Thoughts?

I came to exactly the same conclusion.  We are definitely at risk of over-engineering
this problem.

My feeling is that the best thing to do is to choose a constant, any constant,
set it in a #define FOO <N>  and then use FOO in all the right places.  Then, if
at a later date we discover that <N> is too small/big we can replace it with
another value, or even a call to a function.

Cheers
   Nick




More information about the Binutils mailing list