Nathan Sidwell <nathan@codesourcery.com> writes:
I've installed this patch to make thunks non-weak when the target
function is non-weak. Making them always weak can place them far away
from the target function, and can cause problems on systems with
limited branch ranges.
I get a testsuite failure for this test on Linux/x86-64 in 64-bit:
g++.dg/abi/thunk4.C scan-assembler .weak\t_ZThn4_N7Derived3FooEv
The file contains:
.weak _ZThn8_N7Derived3FooEv
.type _ZThn8_N7Derived3FooEv, @function
I think you have to adopt both thunk3.C and thunk4.C for 64-bit hosts,