public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Hariprasad Nellitheertha <hari@in.ibm.com>
To: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Cc: ebiederm@xmission.com, Vara Prasad <varap@us.ibm.com>, fastboot@osdl.org
Subject: Compile error on 2.6.10-rc1-mm1
Date: Fri, 29 Oct 2004 15:07:54 +0530	[thread overview]
Message-ID: <41820F72.5020203@in.ibm.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1096 bytes --]

Hi Andrew,

The compile time error that few people have been seeing with 
the last couple of -mm releases are due to the changes 
introduced to arch/i386/kernel/vmlinux.lds.S to enable kexec 
based crashdumps. Since fixing this error needs an upgrade 
of the binutils package on those machines, I was looking at 
a possible workaround within the kernel code itself.

The problem seems to arise from the fact that the 
.bss.page_aligned section (defined in head.S) is included 
within the .bss section. Older binutils does not export the 
proper physical address (LMA) for the .bss section. I made a 
patch which moves the .bss.page_aligned section to just 
before the .bss section. This compiles fine with both older 
and newer binutils packages. I have done some amount of 
testing with this change and it has not thrown up any problems.

I am not completely sure though if this does not have any 
side effects.  Could you kindly review this patch and let me 
know if it looks ok.

If we can use this patch, it will spare us from having to 
upgrade to the newer binutils package.

Regards, Hari

[-- Attachment #2: kdump-fix-bss-compile-error.patch --]
[-- Type: text/plain, Size: 779 bytes --]



Signed-off-by: Hariprasad Nellitheertha <hari@in.ibm.com>
---

 linux-2.6.10-rc1-hari/arch/i386/kernel/vmlinux.lds.S |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -puN arch/i386/kernel/vmlinux.lds.S~kdump-fix-bss-compile-error arch/i386/kernel/vmlinux.lds.S
--- linux-2.6.10-rc1/arch/i386/kernel/vmlinux.lds.S~kdump-fix-bss-compile-error	2004-10-28 15:15:43.000000000 +0530
+++ linux-2.6.10-rc1-hari/arch/i386/kernel/vmlinux.lds.S	2004-10-28 15:18:04.000000000 +0530
@@ -117,8 +117,9 @@ SECTIONS
   /* freed after init ends here */
 	
   __bss_start = .;		/* BSS */
+  .bss.page_aligned  : AT(ADDR(.bss.page_aligned) - LOAD_OFFSET) {
+	*(.bss.page_aligned) }
   .bss : AT(ADDR(.bss) - LOAD_OFFSET) {
-	*(.bss.page_aligned)
 	*(.bss)
   }
   . = ALIGN(4);
_

             reply	other threads:[~2004-10-29  9:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-29  9:37 Hariprasad Nellitheertha [this message]
2004-10-29  9:43 ` Compile error on 2.6.10-rc1-mm1 Andrew Morton
2004-10-29 10:51   ` Hariprasad Nellitheertha

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=41820F72.5020203@in.ibm.com \
    --to=hari@in.ibm.com \
    --cc=akpm@osdl.org \
    --cc=ebiederm@xmission.com \
    --cc=fastboot@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=varap@us.ibm.com \
    /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