aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-09-13 19:38:43 +0000
committerAurelien Jarno <aurelien@aurel32.net>2009-11-19 01:22:47 +0100
commitcc7a5a0994a5291c96cbf0ba3f848dd9c2a6ce7a (patch)
tree52c03608cc15e257e1730cf8792bdf3934f1bd9e
parent24e6ff3b338bc297def5888ba98b336e88606a6c (diff)
Fix sparc.ld
Makes 91b40c5be84a478e98c0416325844a7f66d0efae unnecessary. Acked-by: Kirill A. Shutemov <kirill@shutemov.name> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--sparc.ld20
1 files changed, 20 insertions, 0 deletions
diff --git a/sparc.ld b/sparc.ld
index 26ab4151fe..9d23636642 100644
--- a/sparc.ld
+++ b/sparc.ld
@@ -66,6 +66,26 @@ SECTIONS
.data1 : { *(.data1) }
.tdata : { *(.tdata) }
.tbss : { *(.tbss) }
+ .preinit_array :
+ {
+ PROVIDE_HIDDEN (__preinit_array_start = .);
+ KEEP (*(.preinit_array))
+ PROVIDE_HIDDEN (__preinit_array_end = .);
+ }
+ .init_array :
+ {
+ PROVIDE_HIDDEN (__init_array_start = .);
+ KEEP (*(SORT(.init_array.*)))
+ KEEP (*(.init_array))
+ PROVIDE_HIDDEN (__init_array_end = .);
+ }
+ .fini_array :
+ {
+ PROVIDE_HIDDEN (__fini_array_start = .);
+ KEEP (*(.fini_array))
+ KEEP (*(SORT(.fini_array.*)))
+ PROVIDE_HIDDEN (__fini_array_end = .);
+ }
.ctors :
{
*(.ctors)