| To: | linux-mips@linux-mips.org, ralf@linux-mips.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Subject: | [PATCH 1/2] vmlinux.lds.h: Allow architectures to add sections to the front of .bss |
| From: | David Daney <ddaney.cavm@gmail.com> |
| Date: | Tue, 14 Aug 2012 11:08:00 -0700 |
| Cc: | David Daney <david.daney@cavium.com> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=Nj0HtLeW+vkX+aIh8kadTFoHa7TDWH9ODKkpyVKPE1M=; b=ZAmy0DePiIsGumAr0XOUO145aRx6phc+FH3F2muH3PrcLs1Pp4ZQtMDdEGE4U140IM y1LnJpbV/eK2bR1TdD/Ikw6SmmYwTksxCnA6Bihm3bpXf9QBuASW4uEX0+geWsvcqHYq r6c+f3wlFTs01M27ZHOIRGpKVnN5YtpEk7ff0JH/w2BW5m8NFjFEavTBBpYetctOxqhq SH+H8p7pFwOXROQTc/eIK0THSoBgcRI0ASs3H9tMjY56f8rlAj9e6HxF5M/DB+xnB4Ap ABJpfFActc+1IclGRrMO+6bGndCg5cPoTKetea1n9iyYzO94Zx75ezHUxcKym2ROoAXR otqA== |
| In-reply-to: | <1344967681-13179-1-git-send-email-ddaney.cavm@gmail.com> |
| List-archive: | <http://www.linux-mips.org/archives/linux-mips/> |
| List-help: | <mailto:ecartis@linux-mips.org?Subject=help> |
| List-id: | linux-mips <linux-mips.eddie.linux-mips.org> |
| List-owner: | <mailto:ralf@linux-mips.org> |
| List-post: | <mailto:linux-mips@linux-mips.org> |
| List-software: | Ecartis version 1.0.0 |
| List-subscribe: | <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips> |
| List-unsubscribe: | <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips> |
| References: | <1344967681-13179-1-git-send-email-ddaney.cavm@gmail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
From: David Daney <david.daney@cavium.com>
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>
---
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 4e2e1cc..d1ea7ce 100644
--- a/include/asm-generic/vmlinux.lds.h
+++ b/include/asm-generic/vmlinux.lds.h
@@ -530,9 +530,18 @@
*(.scommon) \
}
+/*
+ * Allow archectures to redefine BSS_FIRST_SECTIONS to add extra
+ * sections to the front of bss.
+ */
+#ifndef BSS_FIRST_SECTIONS
+#define BSS_FIRST_SECTIONS
+#endif
+
#define BSS(bss_align) \
. = ALIGN(bss_align); \
.bss : AT(ADDR(.bss) - LOAD_OFFSET) { \
+ BSS_FIRST_SECTIONS \
*(.bss..page_aligned) \
*(.dynbss) \
*(.bss) \
--
1.7.2.3
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 2/2] MIPS: Align swapper_pg_dir to 64K for better TLB Refill code., David Daney |
|---|---|
| Next by Date: | Re: [PATCH 0/2] Align MIPS swapper_pg_dir for faster code., Arnd Bergmann |
| Previous by Thread: | [PATCH 2/2] MIPS: Align swapper_pg_dir to 64K for better TLB Refill code., David Daney |
| Next by Thread: | Re: [PATCH 0/2] Align MIPS swapper_pg_dir for faster code., Arnd Bergmann |
| Indexes: | [Date] [Thread] [Top] [All Lists] |