This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How to use -nostdlib?
- From: Martin Sebor <msebor at redhat dot com>
- To: Ãngel GonzÃlez <keisial at gmail dot com>, gcc-help at gcc dot gnu dot org
- Date: Fri, 15 May 2015 15:17:48 -0600
- Subject: Re: How to use -nostdlib?
- Authentication-results: sourceware.org; auth=none
- References: <CABrM6wmE51vY3H-TgzkrCq=jQQMKak-zjdJ39DjPMD6rya3wRA at mail dot gmail dot com> <1431593147 dot 1701 dot 3 dot camel at shapes dot demon dot co dot uk> <5556600F dot 2070007 at gmail dot com>
On 05/15/2015 03:07 PM, Ãngel GonzÃlez wrote:
I thought -nostlib disabled the printf(x"\n") to puts(x) optimization...
The -ffreestanding or -fno-builtin (or -fno-builtin-printf)
options will do that.
-nostdlib is a link time option (see the manual for details).
Martin