Re: undefined reference to __fixunssfdi, __ashldi3, __lshrdi3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux