This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: undefined reference to __fixunssfdi, __ashldi3, __lshrdi3


JJ <alchemistmba@gmail.com> 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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]