diff options
author | David Daney <david.daney@cavium.com> | 2012-08-14 14:08:00 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2012-10-11 05:02:37 -0400 |
commit | c87728ca82a1057eb8f84e139bf416ca5488b6fb (patch) | |
tree | ecf73f882cf210094be75e129bd4071223aca131 /include/asm-generic/vmlinux.lds.h | |
parent | b4f2a17ba96a79f1069a2c0f1c648cf6d497f2f3 (diff) |
vmlinux.lds.h: Allow architectures to add sections to the front of .bss
Follow-on MIPS patch will put an object here that needs 64K alignment
to minimize padding.
For those architectures that don't define BSS_FIRST_SECTIONS, there is
no change.
Signed-off-by: David Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Cc: linux-arch@vger.kernel.org,
Cc: linux-kernel@vger.kernel.org
Acked-by: Arnd Bergmann <arnd@arndb.de>
Patchwork: https://patchwork.linux-mips.org/patch/4221/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-generic/vmlinux.lds.h')
-rw-r--r-- | include/asm-generic/vmlinux.lds.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 4e2e1cc505ab..d1ea7ce0b4cb 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
@@ -530,9 +530,18 @@ | |||
530 | *(.scommon) \ | 530 | *(.scommon) \ |
531 | } | 531 | } |
532 | 532 | ||
533 | /* | ||
534 | * Allow archectures to redefine BSS_FIRST_SECTIONS to add extra | ||
535 | * sections to the front of bss. | ||
536 | */ | ||
537 | #ifndef BSS_FIRST_SECTIONS | ||
538 | #define BSS_FIRST_SECTIONS | ||
539 | #endif | ||
540 | |||
533 | #define BSS(bss_align) \ | 541 | #define BSS(bss_align) \ |
534 | . = ALIGN(bss_align); \ | 542 | . = ALIGN(bss_align); \ |
535 | .bss : AT(ADDR(.bss) - LOAD_OFFSET) { \ | 543 | .bss : AT(ADDR(.bss) - LOAD_OFFSET) { \ |
544 | BSS_FIRST_SECTIONS \ | ||
536 | *(.bss..page_aligned) \ | 545 | *(.bss..page_aligned) \ |
537 | *(.dynbss) \ | 546 | *(.dynbss) \ |
538 | *(.bss) \ | 547 | *(.bss) \ |