summaryrefslogtreecommitdiff
path: root/ld/scripttempl/v850.sc
diff options
context:
space:
mode:
Diffstat (limited to 'ld/scripttempl/v850.sc')
-rw-r--r--ld/scripttempl/v850.sc8
1 files changed, 6 insertions, 2 deletions
diff --git a/ld/scripttempl/v850.sc b/ld/scripttempl/v850.sc
index 6b2f7e54564..0a20954d65c 100644
--- a/ld/scripttempl/v850.sc
+++ b/ld/scripttempl/v850.sc
@@ -94,13 +94,17 @@ SECTIONS
.data1 : { *(.data1) }
.ctors : {
${RELOCATING+___ctors = .;}
- KEEP (*(.ctors))
+ KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
+ KEEP (*(SORT(.ctors.*)))
+ KEEP (*crtend(.ctors))
${RELOCATING+___ctors_end = .;}
}
.dtors : {
${RELOCATING+___dtors = .;}
- KEEP (*(.dtors))
+ KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
+ KEEP (*(SORT(.dtors.*)))
+ KEEP (*crtend.o(.dtors))
${RELOCATING+___dtors_end = .;}
}