projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4f2a17
)
vmlinux.lds.h: Allow architectures to add sections to the front of .bss
author
David Daney
<
[email protected]
>
Tue, 14 Aug 2012 18:08:00 +0000
(11:08 -0700)
committer
Ralf Baechle
<
[email protected]
>
Thu, 11 Oct 2012 09:02:37 +0000
(11:02 +0200)
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 <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
,
Cc:
[email protected]
Acked-by: Arnd Bergmann <
[email protected]
>
Patchwork: https://patchwork.linux-mips.org/patch/4221/
Signed-off-by: Ralf Baechle <
[email protected]
>
include/asm-generic/vmlinux.lds.h
patch
|
blob
|
history
diff --git
a/include/asm-generic/vmlinux.lds.h
b/include/asm-generic/vmlinux.lds.h
index 4e2e1cc505ab2f1ddbbf54e93353685d202efd79..d1ea7ce0b4cb95c9e61935aefbcb09c12f49bdbc 100644
(file)
--- 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) \