ads1115 only

Fork of mbed by mbed official

Revision:
30:3991a86798e3
Parent:
27:7110ebee3484
diff -r 078e4b97a13e -r 3991a86798e3 LPC1768/GCC_ARM/LPC1768.ld
--- a/LPC1768/GCC_ARM/LPC1768.ld	Fri Dec 09 12:10:12 2011 +0000
+++ b/LPC1768/GCC_ARM/LPC1768.ld	Wed Jan 04 16:29:47 2012 +0000
@@ -80,9 +80,9 @@
     } > FLASH
     __exidx_end = .;
 
-    _etext = .;
+    __etext = .;
         
-    .data : AT (_etext)
+    .data : AT (__etext)
     {
         __data_start__ = .;
         *(vtable)
@@ -91,22 +91,22 @@
         . = ALIGN(4);
         /* preinit data */
         PROVIDE (__preinit_array_start = .);
-        *(.preinit_array)
+        KEEP(*(.preinit_array))
         PROVIDE (__preinit_array_end = .);
 
         . = ALIGN(4);
         /* init data */
         PROVIDE (__init_array_start = .);
-        *(SORT(.init_array.*))
-        *(.init_array)
+        KEEP(*(SORT(.init_array.*)))
+        KEEP(*(.init_array))
         PROVIDE (__init_array_end = .);
 
 
         . = ALIGN(4);
         /* finit data */
         PROVIDE (__fini_array_start = .);
-        *(SORT(.fini_array.*))
-        *(.fini_array)
+        KEEP(*(SORT(.fini_array.*)))
+        KEEP(*(.fini_array))
         PROVIDE (__fini_array_end = .);
 
         . = ALIGN(4);