linker script: add missing VMLINUX_SYMBOL
authorTejun Heo <tj@kernel.org>
Sat, 17 Jan 2009 05:42:50 +0000 (14:42 +0900)
committerTejun Heo <tj@kernel.org>
Sat, 17 Jan 2009 06:26:12 +0000 (15:26 +0900)
The newly added PERCPU_*() macros define and use __per_cpu_load but
VMLINUX_SYMBOL() was missing from usages causing build failures on
archs where linker visible symbol is different from C symbols
(e.g. blackfin).

Signed-off-by: Tejun Heo <tj@kernel.org>
include/asm-generic/vmlinux.lds.h

index e53319cf29cb71c769dfae4254136a3f7a28275f..aa6b9b1b30b5bd7cbeac0ba1743af3a07172ad92 100644 (file)
 
 #define PERCPU_PROLOG(vaddr)                                           \
        VMLINUX_SYMBOL(__per_cpu_load) = .;                             \
-       .data.percpu vaddr : AT(__per_cpu_load - LOAD_OFFSET) {         \
+       .data.percpu vaddr : AT(VMLINUX_SYMBOL(__per_cpu_load)          \
+                               - LOAD_OFFSET) {                        \
                VMLINUX_SYMBOL(__per_cpu_start) = .;
 
 #define PERCPU_EPILOG(phdr)                                            \
                VMLINUX_SYMBOL(__per_cpu_end) = .;                      \
        } phdr                                                          \
-       . = __per_cpu_load + SIZEOF(.data.percpu);
+       . = VMLINUX_SYMBOL(__per_cpu_load) + SIZEOF(.data.percpu);
 
 /**
  * PERCPU_VADDR_PREALLOC - define output section for percpu area with prealloc