diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-generic/vmlinux.lds.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 53e21f36a802..f3180a85c66a 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
@@ -451,17 +451,18 @@ | |||
451 | * end offset. | 451 | * end offset. |
452 | */ | 452 | */ |
453 | #define PERCPU_VADDR(vaddr, phdr) \ | 453 | #define PERCPU_VADDR(vaddr, phdr) \ |
454 | VMLINUX_SYMBOL(__per_cpu_load) = .; \ | 454 | VMLINUX_SYMBOL(__per_cpu_load_abs) = .; \ |
455 | .data.percpu vaddr : AT(VMLINUX_SYMBOL(__per_cpu_load) \ | 455 | .data.percpu vaddr : AT(VMLINUX_SYMBOL(__per_cpu_load_abs) \ |
456 | - LOAD_OFFSET) { \ | 456 | - LOAD_OFFSET) { \ |
457 | VMLINUX_SYMBOL(__per_cpu_start) = .; \ | 457 | VMLINUX_SYMBOL(__per_cpu_start) = .; \ |
458 | VMLINUX_SYMBOL(__per_cpu_load) = LOADADDR(.data.percpu) + LOAD_OFFSET;\ | ||
458 | *(.data.percpu.first) \ | 459 | *(.data.percpu.first) \ |
459 | *(.data.percpu.page_aligned) \ | 460 | *(.data.percpu.page_aligned) \ |
460 | *(.data.percpu) \ | 461 | *(.data.percpu) \ |
461 | *(.data.percpu.shared_aligned) \ | 462 | *(.data.percpu.shared_aligned) \ |
462 | VMLINUX_SYMBOL(__per_cpu_end) = .; \ | 463 | VMLINUX_SYMBOL(__per_cpu_end) = .; \ |
463 | } phdr \ | 464 | } phdr \ |
464 | . = VMLINUX_SYMBOL(__per_cpu_load) + SIZEOF(.data.percpu); | 465 | . = VMLINUX_SYMBOL(__per_cpu_load_abs) + SIZEOF(.data.percpu); |
465 | 466 | ||
466 | /** | 467 | /** |
467 | * PERCPU - define output section for percpu area, simple version | 468 | * PERCPU - define output section for percpu area, simple version |