aboutsummaryrefslogtreecommitdiff
path: root/sparc.ld
diff options
context:
space:
mode:
Diffstat (limited to 'sparc.ld')
-rw-r--r--sparc.ld20
1 files changed, 20 insertions, 0 deletions
diff --git a/sparc.ld b/sparc.ld
index 5aed1c2aaf..31321be532 100644
--- a/sparc.ld
+++ b/sparc.ld
@@ -65,6 +65,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)