-nostdlib option!

Manuel Coutinho manuel.coutinho@edisoft.pt
Mon Feb 7 12:44:00 GMT 2011


Hi

Other mechanism: supply your own memset, memcpy, etc.
If you do this, the linker will know which memset, memcpy, etc to use and
will not complaint about not using libc.

Regards
Manuel Coutinho

-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of ali hagigat
Sent: 07 February 2011 11:04
To: gcc-help@gcc.gnu.org
Subject: -nostdlib option!

I have copied part of gcc manual:
------------------------------------
Do not use the standard system startup files or libraries when
linking.  No startup files and only the libraries you specify will be
passed to the linker.  The compiler may generate calls to "memcmp",
"memset", "memcpy" and "memmove".  These entries are usually resolved
by entries in libc.  These entry points should be supplied through
some other mechanism when this option is specified.
------------------------------------
What is some other mechanism? How can i use -nostdlib?



More information about the Gcc-help mailing list