http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56888
--- Comment #15 from Max Reitz <xanclic at gmail dot com> --- (In reply to Andreas Schwab from comment #14) > The relevant option is -ffreestanding, not -nostdlib. If you're referring to me, I'll be glad to cite my OP for you :D > Compiling the attached trivial memcpy implementation with -O3 -ffreestanding > -fno-builtin -nodefaultlibs -nostdlib yields a memcpy which calls itself.