changeset 251:f6af5791472c 2.x

Fixed default LWEX0 linkscript to include .ctors and .dtors sections
author lost
date Fri, 27 Nov 2009 22:04:05 +0000
parents 0986834ec7d3
children 4dc2a10997a6
files ChangeLog lwlink/script.c
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Nov 26 21:12:45 2009 +0000
+++ b/ChangeLog	Fri Nov 27 22:04:05 2009 +0000
@@ -28,6 +28,8 @@
     in the future if a reasonable model for such is determined; currently
     this is just provided for compatibility with the gcc6809 build process
     [LWASM]
+[b] Fixed default linkscript for LWEX0 format to include the .ctors, .dtors,
+    and related section [LWLINK]
 
 Version 2.5
 
--- a/lwlink/script.c	Thu Nov 26 21:12:45 2009 +0000
+++ b/lwlink/script.c	Fri Nov 27 22:04:05 2009 +0000
@@ -51,6 +51,12 @@
 static char *lwex0_script =
 	"section init load 0100\n"
 	"section .text\n"
+	"section .ctors_start\n"
+	"section .ctors\n"
+	"section .ctors_end\n"
+	"section .dtors_start\n"
+	"section .dtors\n"
+	"section .dtors_end\n"
 	"section .data\n"
 	"section *,!bss\n"
 	"section *,bss\n"