From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Liuweni" Subject: I cannot find the "linux" definition in arm Date: Sat, 28 Nov 2009 10:47:03 +0800 Message-ID: <200911281047004065077@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: "linux-fsdevel" , "linux-kernel" Return-path: Received: from mail-pz0-f171.google.com ([209.85.222.171]:63240 "EHLO mail-pz0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752711AbZK1Cmp (ORCPT ); Fri, 27 Nov 2009 21:42:45 -0500 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: hi all, the s3c2410_defconfig cannot compile with the SEGMENT_SIZE is missing in the s/binfmt_aout.c. In the line 270 fs/binfmt_aout.c, the function will call a macro "N_DATADDR". The N_DATADDR is defined as the following, in the include/linux/a.out.h ------ #ifndef N_DATADDR #define N_DATADDR(x) \ (N_MAGIC(x)==OMAGIC? (_N_TXTENDADDR(x)) \ : (_N_SEGMENT_ROUND (_N_TXTENDADDR(x)))) #endif ------ And the definition of _N_SEGMENT_ROUND(x) is ALIGN(x, SEGMENT_SIZE). Then, there is a macro SEGMENT_SIZE. I search the definition of SEGMENT_SIZE, it's only in the include/linux/a.out.h Maybe the SEGMENT is defined as --- #ifdef linux #ifdef __KERNEL__ #include #else #include #endif #if defined(__i386__) || defined(__mc68000__) #define SEGMENT_SIZE 1024 #else #ifndef SEGMENT_SIZE #ifdef __KERNEL__ #define SEGMENT_SIZE PAGE_SIZE #else #define SEGMENT_SIZE getpagesize() #endif #endif #endif #endif --- But I cannot find the definition of linux. And the SEGMENT_SIZE is not defined. what should I do? remove binfmt in the arch/arm/Kconfig, change include/linux/a.out.h, or other ? BTW, the x86 is OK, but also I cannot find the definition of "linux" -------------- Best regards, Liuweni 2009-11-28