DMA350 freertos example: Update ld file

Signed-off-by: Gabor Abonyi <gabor.abonyi@arm.com>
Change-Id: Ie29f2fce9232f69435ebcb82bd085813d7c16941
diff --git a/examples/corstone310_fvp_dma/dma350_ns/corstone310_freertos.ld b/examples/corstone310_fvp_dma/dma350_ns/corstone310_freertos.ld
index 54ff1e3..a3c7615 100644
--- a/examples/corstone310_fvp_dma/dma350_ns/corstone310_freertos.ld
+++ b/examples/corstone310_fvp_dma/dma350_ns/corstone310_freertos.ld
@@ -104,12 +104,13 @@
         __copy_table_start__ = .;
         LONG (__etext)
         LONG (__data_start__)
-        LONG (__data_end__ - __data_start__)
+        LONG ((__data_end__ - __data_start__) / 4)
         LONG (DEFINED(__etext2) ? __etext2 : 0)
         LONG (DEFINED(__data2_start__) ? __data2_start__ : 0)
-        LONG (DEFINED(__data2_start__) ? __data2_end__ - __data2_start__ : 0)
+        LONG (DEFINED(__data2_start__) ? ((__data2_end__ - __data2_start__) / 4) : 0)
         __copy_table_end__ = .;
     } > FLASH
+
     /* To clear multiple BSS sections,
      * uncomment .zero.table section and,
      * define __STARTUP_CLEAR_BSS_MULTIPLE in startup_cmsdk_mps3_an524_ns.S */
@@ -118,12 +119,14 @@
         . = ALIGN(4);
         __zero_table_start__ = .;
         LONG (__bss_start__)
-        LONG (__bss_end__ - __bss_start__)
+        LONG ((__bss_end__ - __bss_start__) / 4)
         LONG (DEFINED(__bss2_start__) ? __bss2_start__ : 0)
-        LONG (DEFINED(__bss2_start__) ? __bss2_end__ - __bss2_start__ : 0)
+        LONG (DEFINED(__bss2_start__) ? ((__bss2_end__ - __bss2_start__) / 4) : 0)
         __zero_table_end__ = .;
     } > FLASH
-    __etext = .;
+
+    __etext = ALIGN(4);
+
     .data : AT (__etext)
     {
         __data_start__ = .;