From patchwork Wed Mar 18 11:55:13 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Beregalov X-Patchwork-Id: 12823 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n2IBtIrR003365 for ; Wed, 18 Mar 2009 11:55:18 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755987AbZCRLzT (ORCPT ); Wed, 18 Mar 2009 07:55:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756490AbZCRLzT (ORCPT ); Wed, 18 Mar 2009 07:55:19 -0400 Received: from mail-bw0-f169.google.com ([209.85.218.169]:60087 "EHLO mail-bw0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755987AbZCRLzR (ORCPT ); Wed, 18 Mar 2009 07:55:17 -0400 Received: by bwz17 with SMTP id 17so11430bwz.37 for ; Wed, 18 Mar 2009 04:55:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=zXkxNQOFau92dGbmgrLICPgIRtVjJbJTkL18skybnxA=; b=MVXkL5sOqy0RlTFyZnQ1/WfnqMbXs2F/nOwq5OaMGe3jJkT8mxQ/S9zi58rZlo4J24 TLU3473r0CVTh3bRDecy6EM6diG4VsxcwH1AI1kGaz7tFhC8QSN6y+iSmahwY/KJBGVR cjAlH97cOpV4rQ23cyfhbuUeS6ssj0I10bewg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=uRkO+99Iu5cLMZ17N2I29AJeGfL3XlGc4AQZcq74ODtGeI6jBOCK9WWoMlAzce2SJP UhdmuCC3J6SaP7wUcDD+mup+NBy7sByO0C6cwGex4yXlTxHQnH9DbLUk31Q0mDyQ6w89 OPHDyd0si5se/lKxIMoBNQSp7VUdKAG9dOjBU= MIME-Version: 1.0 Received: by 10.223.114.207 with SMTP id f15mr927138faq.90.1237377314543; Wed, 18 Mar 2009 04:55:14 -0700 (PDT) In-Reply-To: <20090303163348.422E34E9A@hiauly1.hia.nrc.ca> References: <20090303163348.422E34E9A@hiauly1.hia.nrc.ca> Date: Wed, 18 Mar 2009 14:55:13 +0300 Message-ID: Subject: Re: can't compile kernel for parisc From: Alexander Beregalov To: John David Anglin Cc: carlos@systemhalted.org, linux-parisc@vger.kernel.org Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org Hi ld now does not segfault http://lists.gnu.org/archive/html/bug-binutils/2009-03/msg00105.html but I still can not build kernel. ld -r -o init/built-in.o init/main.o init/version.o init/mounts.o init/noinitramfs.o init/calibrate.o ld --build-id -o .tmp_vmlinux1 -T arch/parisc/kernel/vmlinux.lds arch/parisc/kernel/head.o init/built-in.o --start-group usr/built-in.o arch/parisc/mm/built-in.o arch/parisc/kernel/built-in.o arch/parisc/math-emu/built-in.o arch/parisc/kernel/init_task.o kernel/built-in.o mm/built-in.o fs/built-in.o ipc/built-in.o security/built-in.o crypto/built-in.o block/built-in.o lib/lib.a arch/parisc/lib/lib.a `gcc -print-libgcc-file-name` lib/built-in.o arch/parisc/lib/built-in.o `gcc -print-libgcc-file-name` drivers/built-in.o sound/built-in.o firmware/built-in.o net/built-in.o --end-group ld: arch/parisc/kernel/built-in.o(.text+0xc84): cannot reach 000000b2_b2:46+4068, recompile with -ffunction-sections ld: arch/parisc/kernel/built-in.o(.text+0xc84): cannot handle R_PARISC_PCREL12F for .text I have recompiled kernel with -ffunction-sections, but still the same problem. gcc version 4.3.3 (Gentoo 4.3.3-r1 p1.1, pie-10.1.5) --- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Makefile b/Makefile index 2e2f4a4..61b09b2 100644 --- a/Makefile +++ b/Makefile @@ -346,7 +346,7 @@ KBUILD_CPPFLAGS := -D__KERNEL__ KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -fno-strict-aliasing -fno-common \ - -Werror-implicit-function-declaration + -Werror-implicit-function-declaration -ffunction-sections KBUILD_AFLAGS := -D__ASSEMBLY__ # Read KERNELRELEASE from include/config/kernel.release (if it exists)