Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964981Ab3DJRGc (ORCPT ); Wed, 10 Apr 2013 13:06:32 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:49761 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1765413Ab3DJRGa (ORCPT ); Wed, 10 Apr 2013 13:06:30 -0400 Date: Wed, 10 Apr 2013 13:06:23 -0400 (EDT) Message-Id: <20130410.130623.1470172183056352815.davem@davemloft.net> To: geert@linux-m68k.org Cc: linux-m68k@vger.kernel.org, linux-arch@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH/RFC] m68k: Add -ffreestanding to KBUILD_CFLAGS From: David Miller In-Reply-To: <1365585879-5321-1-git-send-email-geert@linux-m68k.org> References: <1365585879-5321-1-git-send-email-geert@linux-m68k.org> X-Mailer: Mew version 6.5 on Emacs 24.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (shards.monkeyblade.net [0.0.0.0]); Wed, 10 Apr 2013 10:06:30 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 714 Lines: 15 From: Geert Uytterhoeven Date: Wed, 10 Apr 2013 11:24:39 +0200 > Without -ffreestanding, gcc may replace calls to standard C library > functions by calls to other standard C library functions and/or inline > code. This may cause link errors if the replacement code calls a standard > C library function that's implemented as a macro in the kernel. I think you should instead implement the library functions that gcc might emit during a build. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/