JJ <alchemistmba@xxxxxxxxx> writes: > Is this the right way to make a standalone binary: > > cross-ld -static -nostdlib -T temp.ld -o standalone_program start.o > abc.o xyz.o -lgcc -L<path_to_libs> > > This is a cross compiled binary and I haven't tested it as yet. It's usually best to link with cross-gcc rather than cross-ld. You can use the -nostartfiles, -nodefaultlibs, -nostdlib options to gcc to control what it passes to the linker. Ian