From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761891AbYENPsb (ORCPT ); Wed, 14 May 2008 11:48:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756882AbYENPsN (ORCPT ); Wed, 14 May 2008 11:48:13 -0400 Received: from mu-out-0910.google.com ([209.85.134.187]:43107 "EHLO mu-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755238AbYENPsL (ORCPT ); Wed, 14 May 2008 11:48:11 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=b3SkWvSyJjrC/BY3URHyxDcax7isGsSDtZdiJpMoeknvksM4UaQRYM+1+ONY5A5qxcAGk7wibyQwooAYdN+vwFh7CuUNVxRMfGTLqjs4YMTb7XaikVeJ1poJyE908w5rW8GY174xlS5kHxYgCvDZY4OIsLjSxzII7kj30yVGoeU= Date: Wed, 14 May 2008 19:48:01 +0400 From: Cyrill Gorcunov To: Adrian Bunk Cc: Andreas Schwab , Geert Uytterhoeven , Linux/m68k , Linux Kernel Development Subject: Re: m68k: main.c:(.init.text+0x730): undefined reference to `strlen' Message-ID: <20080514154801.GG6902@cvg> References: <20080514141056.GB19909@cs181133002.pp.htv.fi> <20080514153059.GA22115@cs181133002.pp.htv.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080514153059.GA22115@cs181133002.pp.htv.fi> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [Adrian Bunk - Wed, May 14, 2008 at 06:30:59PM +0300] | On Wed, May 14, 2008 at 04:28:24PM +0200, Andreas Schwab wrote: | > Adrian Bunk writes: | > | > > Or replace all the strlen stuff in include/asm-m68k/string.h with a | > | > I don't think the strlen macros has any influence in this case (it | > already uses __builtin_strlen anyway). | | The problem is that it sets __HAVE_ARCH_STRLEN, and therefore the | out-of-line function in lib/string.c is not built. | | That breaks when gcc replaces a call to a different function with a call | to strlen(). | | > I'd rather guess that gcc is | > expanding strncat internally to something involving strlen with | > non-constant argument, | | We agree on this one. | | > although I cannot see how that can happen from a | > quick look. | | It isn't the first time we have these problems in the kernel... | | > Andreas. | | cu | Adrian | | -- | | "Is there not promise of rain?" Ling Tan asked suddenly out | of the darkness. There had been need of rain for many days. | "Only a promise," Lao Er said. | Pearl S. Buck - Dragon Seed | | Adrian, I've just sent the updated patch, and accidentally forget to CC you - please take a look on http://lkml.org/lkml/2008/5/14/267 - Cyrill -