public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Roland Kindermann <iyo@gmx.de>
To: gcc-help@gcc.gnu.org
Subject: Force gcc to include builtin functions in the executable
Date: Tue, 05 Aug 2008 21:38:00 -0000	[thread overview]
Message-ID: <4898C839.9080707@gmx.de> (raw)

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

             reply	other threads:[~2008-08-05 21:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-05 21:38 Roland Kindermann [this message]
2008-08-08  6:13 ` Daniel Lohmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4898C839.9080707@gmx.de \
    --to=iyo@gmx.de \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).