From: Paul Mackerras <paulus@samba.org>
To: "Chris Friesen" <cfriesen@nortel.com>
Cc: linuxppc-dev@ozlabs.org, Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: build failure on powerpc with current -git
Date: Tue, 21 Oct 2008 16:33:10 +1100 [thread overview]
Message-ID: <18685.27030.529655.761257@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <48F8E86B.702@nortel.com>
Chris Friesen writes:
> The current -git fails to build on 64-bit powerpc (failure log below) .
> Initially I tried using my older toolchain, when I first saw the
> problem I built a new toolchain with crosstool (gcc 4.1.2 and binutils
> 2.16.1) and tried again but got the same problem.
It's a bug in older versions of ld (including 2.16.1) that's fixed in
the current version (2.18). However, this patch appears to work
around the problem - at least, it let me build a 32-bit kernel with a
cross-toolchain including a 2.16.1 ld. Let me know if this gets it
working for you.
Paul.
diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper
index 25fe9d6..e8acee2 100755
--- a/arch/powerpc/boot/wrapper
+++ b/arch/powerpc/boot/wrapper
@@ -284,6 +284,8 @@ if [ -n "$dtb" ]; then
if [ -n "$dts" ]; then
rm $dtb
fi
+else
+ addsec $tmp /dev/null .kernel:dtb
fi
if [ "$platform" != "miboot" ]; then
diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S
index b39c27e..384dca5 100644
--- a/arch/powerpc/kernel/vmlinux.lds.S
+++ b/arch/powerpc/kernel/vmlinux.lds.S
@@ -187,6 +187,7 @@ SECTIONS
*(.machine.desc)
__machine_desc_end = . ;
}
+#ifdef CONFIG_RELOCATABLE
. = ALIGN(8);
.dynsym : AT(ADDR(.dynsym) - LOAD_OFFSET) { *(.dynsym) }
.dynstr : AT(ADDR(.dynstr) - LOAD_OFFSET) { *(.dynstr) }
@@ -202,6 +203,7 @@ SECTIONS
__rela_dyn_start = .;
*(.rela*)
}
+#endif
/* Fake ELF header containing RPA note; for addnote */
.fakeelf : AT(ADDR(.fakeelf) - LOAD_OFFSET) { *(.fakeelf) }
next prev parent reply other threads:[~2008-10-21 5:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-17 19:32 Chris Friesen
2008-10-18 6:49 ` Grant Likely
2008-10-21 5:33 ` Paul Mackerras [this message]
2008-10-21 8:13 ` Stephen Rothwell
2008-10-22 3:58 ` Paul Mackerras
2008-10-22 15:21 ` Hollis Blanchard
2008-10-22 17:49 ` Chris Friesen
[not found] ` <fb412d760810220819o1a15d47ej198f6e15c3e63f15@mail.gmail.com>
2008-10-22 17:50 ` Chris Friesen
2008-10-23 0:19 ` Josh Boyer
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=18685.27030.529655.761257@cargo.ozlabs.ibm.com \
--to=paulus@samba.org \
--cc=cfriesen@nortel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.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
all inboxes | Powered by JetHome®