powerpc: Fix compile error with binutils 2.15

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, July 25, 2008 - 12:14 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=80c60b...
Commit:     80c60bf9b96f6108c630d90efc073cd520801e6c
Parent:     7886250e9d71b24d0205ac6798ee855fb3836318
Author:     Segher Boessenkool <segher@kernel.crashing.org>
AuthorDate: Fri Jul 25 10:08:41 2008 +1000
Committer:  Benjamin Herrenschmidt <benh@kernel.crashing.org>
CommitDate: Fri Jul 25 15:44:40 2008 +1000

    powerpc: Fix compile error with binutils 2.15
    
    My previous patch to fix compilation with binutils-2.17 causes
    a "file truncated" build error from ld with binutils 2.15 (and
    possibly older), and a warning with 2.16 and 2.17.
    
    This fixes it.
    
    Signed-off-by: Segher Boessenkool <segher@kernel.crashing.org>
    Acked-by: Chuck Meade <chuckmeade@mindspring.com>
    Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
 arch/powerpc/kernel/vmlinux.lds.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S
index a914411..4a8ce62 100644
--- a/arch/powerpc/kernel/vmlinux.lds.S
+++ b/arch/powerpc/kernel/vmlinux.lds.S
@@ -85,7 +85,7 @@ SECTIONS
 
 	/* The dummy segment contents for the bug workaround mentioned above
 	   near PHDRS.  */
-	.dummy : {
+	.dummy : AT(ADDR(.dummy) - LOAD_OFFSET) {
 		LONG(0xf177)
 	} :kernel :dummy
 
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
powerpc: Fix compile error with binutils 2.15, Linux Kernel Mailing ..., (Fri Jul 25, 12:14 pm)