diff options
author | Tejun Heo <tj@kernel.org> | 2009-01-17 00:42:50 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-01-17 01:26:12 -0500 |
commit | 145cd30bac885dffad9db9d487baad07b68a3d04 (patch) | |
tree | 0b5f34ac563fe83f5b40adb36d7fa1e16624f5d9 /include/asm-generic | |
parent | cd3adf52309867955d6e2175246b526442235805 (diff) |
linker script: add missing VMLINUX_SYMBOL
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>
Diffstat (limited to 'include/asm-generic')
-rw-r--r-- | include/asm-generic/vmlinux.lds.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index e53319cf29cb..aa6b9b1b30b5 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
@@ -432,13 +432,14 @@ | |||
432 | 432 | ||
433 | #define PERCPU_PROLOG(vaddr) \ | 433 | #define PERCPU_PROLOG(vaddr) \ |
434 | VMLINUX_SYMBOL(__per_cpu_load) = .; \ | 434 | VMLINUX_SYMBOL(__per_cpu_load) = .; \ |
435 | .data.percpu vaddr : AT(__per_cpu_load - LOAD_OFFSET) { \ | 435 | .data.percpu vaddr : AT(VMLINUX_SYMBOL(__per_cpu_load) \ |
436 | - LOAD_OFFSET) { \ | ||
436 | VMLINUX_SYMBOL(__per_cpu_start) = .; | 437 | VMLINUX_SYMBOL(__per_cpu_start) = .; |
437 | 438 | ||
438 | #define PERCPU_EPILOG(phdr) \ | 439 | #define PERCPU_EPILOG(phdr) \ |
439 | VMLINUX_SYMBOL(__per_cpu_end) = .; \ | 440 | VMLINUX_SYMBOL(__per_cpu_end) = .; \ |
440 | } phdr \ | 441 | } phdr \ |
441 | . = __per_cpu_load + SIZEOF(.data.percpu); | 442 | . = VMLINUX_SYMBOL(__per_cpu_load) + SIZEOF(.data.percpu); |
442 | 443 | ||
443 | /** | 444 | /** |
444 | * PERCPU_VADDR_PREALLOC - define output section for percpu area with prealloc | 445 | * PERCPU_VADDR_PREALLOC - define output section for percpu area with prealloc |