I compiled newlib 1.19, same error

Any suggestions?
I'm not very familiar with gcc and ld..
Edit: Works with Makefile.tpl. Without -nostdlib it's ~100 KB larger
Edit 2:
ld cpuops.o cpuexec.o sa1cpu.o nspire.o apudebug.o c4.o c4emu.o cpu.o sa1.o debug.o sdd1.o tile.o srtc.o gfx.o memmap.o clip.o dsp1.o ppu.o dma.o snes9x.o data.o globals.o spc7110.o obc1.o seta.o seta010.o seta011.o seta018.o fxinst.o fxemu.o fxdbg.o cheats.o cheats2.o apu.o soundux.o spc700.o -o snes9x.elf -lm
make: *** [snes9x.tns] Segmentation fault
Congratulations, binutils. *clap clap clap*
(I know I'm using the wrong one, but there should at least be an error message..)
Edit3: Edited ldscript and osstub.c, compiles now.