From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29743 invoked by alias); 5 Aug 2008 21:38:47 -0000 Received: (qmail 29728 invoked by uid 22791); 5 Aug 2008 21:38:46 -0000 X-Spam-Check-By: sourceware.org Received: from mail.gmx.net (HELO mail.gmx.net) (213.165.64.20) by sourceware.org (qpsmtpd/0.31) with SMTP; Tue, 05 Aug 2008 21:38:07 +0000 Received: (qmail invoked by alias); 05 Aug 2008 21:38:04 -0000 Received: from xdsl-81-173-189-106.netcologne.de (EHLO [127.0.0.1]) [81.173.189.106] by mail.gmx.net (mp017) with SMTP; 05 Aug 2008 23:38:04 +0200 X-Authenticated: #3445168 Message-ID: <4898C839.9080707@gmx.de> Date: Tue, 05 Aug 2008 21:38:00 -0000 From: Roland Kindermann User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Force gcc to include builtin functions in the executable Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.8100000000000001 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: 2008-08/txt/msg00057.txt.bz2 Hello, I have a program that uses four builtin functions: __alloca, ___main, _memset and _strcpy. While __alloca is compiled directly into the executable, the other three are used from a library. Is there a way to make gcc compile ___main, _memset and strcpy also into the executable such that it does not use any libraries anymore? I already tried -nostdlib but that results in link errors. For those who care: The reason why I want my executable independent from any libraries is that I perform static analysis on it and my analysis tool is not yet able to take additional libraries into account. Cheers, Roland