From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760923AbYENOwT (ORCPT ); Wed, 14 May 2008 10:52:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756616AbYENOwE (ORCPT ); Wed, 14 May 2008 10:52:04 -0400 Received: from ug-out-1314.google.com ([66.249.92.171]:9540 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757270AbYENOwE (ORCPT ); Wed, 14 May 2008 10:52:04 -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:content-transfer-encoding:in-reply-to:user-agent; b=Ac382QsLYkTxB0FMn2BQrrqrvkeBzmWkAAZAOhHyMjNOec/wfM7dYy7LlYxz/M3q0NTFXxJvssP0HyPnnNPzb/4TAWtLK5Sr4UmSzqeKUYLQuXrJEcppvllrmeMMlC7xlG6QhokwArwOViO5eJ+Rzl8Kb0Nvd1pyhRsFa6uKvXE= Date: Wed, 14 May 2008 18:51:52 +0400 From: Cyrill Gorcunov To: Andreas Schwab Cc: Adrian Bunk , Geert Uytterhoeven , Linux/m68k , Linux Kernel Development Subject: Re: m68k: main.c:(.init.text+0x730): undefined reference to `strlen' Message-ID: <20080514145152.GB6902@cvg> References: <20080514141056.GB19909@cs181133002.pp.htv.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 [Andreas Schwab - Wed, May 14, 2008 at 04:28:24PM +0200] | 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). I'd rather guess that gcc is | expanding strncat internally to something involving strlen with | non-constant argument, although I cannot see how that can happen from a | quick look. | | Andreas. | | -- | Andreas Schwab, SuSE Labs, schwab@suse.de | SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany | PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 | "And now for something completely different." | actually, i can rewrite it using memcpy if strncat causes such a problems - Cyrill -