powerpc: Fix compile error with binutils 2.15
authorSegher Boessenkool <segher@kernel.crashing.org>
Fri, 25 Jul 2008 00:08:41 +0000 (10:08 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 25 Jul 2008 05:44:40 +0000 (15:44 +1000)
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

index a914411bced5defb4179628c9b0049d68a360ab0..4a8ce62fe1121c1a774f04a9af6223a96f945c23 100644 (file)
@@ -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