Re: build failure on powerpc with current -git

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul Mackerras
Date: Tuesday, October 21, 2008 - 8:58 pm

Stephen Rothwell writes:


Hmmm, so do I, and in fact the arch/powerpc/boot/wrapper change now
seems to be unnecessary with my cross-compile setup (which has ld
2.16.1), whereas yesterday I'm sure it got errors.  Weird.

Chris, could you try just the following change (my previous patch
without the arch/powerpc/boot/wrapper change) and let me know if it
fixes things with the ld you use?

Paul.
---
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) }
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
build failure on powerpc with current -git, Chris Friesen, (Fri Oct 17, 12:32 pm)
Re: build failure on powerpc with current -git, Grant Likely, (Fri Oct 17, 11:49 pm)
Re: build failure on powerpc with current -git, Paul Mackerras, (Mon Oct 20, 10:33 pm)
Re: build failure on powerpc with current -git, Stephen Rothwell, (Tue Oct 21, 1:13 am)
Re: build failure on powerpc with current -git, Paul Mackerras, (Tue Oct 21, 8:58 pm)
Re: build failure on powerpc with current -git, Hollis Blanchard, (Wed Oct 22, 8:21 am)
Re: build failure on powerpc with current -git, Chris Friesen, (Wed Oct 22, 10:49 am)