This should help make D55423 be even more simple and also
fixes the broken behavior shown in one of our test cases
for some targets, like x86-64.
The issue occurs when the forward declarations are used in the script.
One of the samples is:
SECTIONS { foo = ADDR(.text) - ABSOLUTE(ADDR(.text)); };
In that case, we have a broken output when output target does
not use thunks. That happens because thunks creating code
calls Script->assignAddresses() at least once one more time,
what fixups the values.
In this patch, I generalize and rename maybeAddThunks to be used
by all targets.