Compiling lib/csu/common_elf/crtbegin.c in the NetBSD 1.6.2 source tree with gcc 4.0.0 and binutils 2.16, I get complaints from ld: crtbeginS.o: CALL16 reloc at 0xfc not against global symbol The call16 is in the .s file generated by gcc, but I can't tell why it's any different from the others. Will attach .i and .s files (it would be nice if you could do that when entering a bug...)
Created attachment 8845 [details] Preprocessed source file of the code that shows the problem
Created attachment 8846 [details] Assembly file generated by gcc 4.0.0
lw $25,%call16(fini_fallthru)($28) I want to say the above is the problem and it is a local symbol but to GCC it is a global one.
Andrew's right. You're telling gcc that init_fallthru() and fini_fallthru() are global functions, but your asms define it to be a local function.