From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14494 invoked by alias); 7 Feb 2011 11:21:33 -0000 Received: (qmail 14484 invoked by uid 22791); 7 Feb 2011 11:21:32 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from edasl.edisoft.pt (HELO edasl.edisoft.pt) (193.126.230.50) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 Feb 2011 11:21:28 +0000 Received: from [192.168.10.3] (port=3018 helo=mx.edisoft.pt) by edasl.edisoft.pt with esmtp (Exim 4.69) (envelope-from ) id 1PmP9m-0004OH-1X for gcc-help@gcc.gnu.org; Mon, 07 Feb 2011 11:21:22 +0000 Received: from WIN5IN206U17AR ([192.168.10.54]) by mx.edisoft.pt with Microsoft SMTPSVC(6.0.3790.3959); Mon, 7 Feb 2011 11:21:22 +0000 X-CTCH-RefID: str=0001.0A0B0203.4D4FD5B2.0260,ss=1,fgs=0 From: "Manuel Coutinho" To: "'ali hagigat'" , References: In-Reply-To: Subject: RE: -nostdlib option! Date: Mon, 07 Feb 2011 12:44:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-02/txt/msg00138.txt.bz2 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?