Created attachment 9561 [details] weak bug Within the following test case, the weak symbol "__test" cannot be found in resulting binary. With ld version 2.26; the weak symbol is present in resulting binary.
Hi Othacehe, This is not a bug, it is an optimization. Since you are not creating a dynamic executable there is no way that the weak __test symbol can be resolved at run-time. So there is no need to keep it in the executable's symbol table. Cheers Nick