RE: -nostdlib option!

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

 



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@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] On
Behalf Of ali hagigat
Sent: 07 February 2011 11:04
To: gcc-help@xxxxxxxxxxx
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?



[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