From: "Liuweni" <qingshenlwy@gmail.com>
To: "linux-fsdevel" <linux-fsdevel@vger.kernel.org>,
"linux-kernel" <linux-kernel@vger.kernel.org>
Subject: I cannot find the "linux" definition in arm
Date: Sat, 28 Nov 2009 10:47:03 +0800 [thread overview]
Message-ID: <200911281047004065077@gmail.com> (raw)
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 <asm/page.h>
#else
#include <unistd.h>
#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
reply other threads:[~2009-11-28 2:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200911281047004065077@gmail.com \
--to=qingshenlwy@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).