]> git.sur5r.net Git - openocd/commitdiff
testing: fix str710 test case now builds
authorØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 20 Jan 2010 14:11:09 +0000 (15:11 +0100)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 20 Jan 2010 14:12:31 +0000 (15:12 +0100)
Make the test case easily adjustable in size. str710
has very peculiar flash sector layout, nice for testing,
but a larget test_rom.elf is required.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
testing/examples/STR710Test/.gitignore [new file with mode: 0644]
testing/examples/STR710Test/prj/hitex_str7_ram.ld
testing/examples/STR710Test/prj/hitex_str7_rom.ld
testing/examples/STR710Test/src/main.c

diff --git a/testing/examples/STR710Test/.gitignore b/testing/examples/STR710Test/.gitignore
new file mode 100644 (file)
index 0000000..a2d3f5a
--- /dev/null
@@ -0,0 +1,2 @@
+.dep
+src/main.lst
index 7ea221a6dd654880b69448a200ac4236748f9e4b..a0b2a3c68d0266c73b01d7492b64a3c95b1e7e8f 100644 (file)
@@ -82,17 +82,17 @@ SECTIONS
        {
                *(.init)
         *(.fini)
-               PROVIDE_HIDDEN (__preinit_array_start = .);
+               PROVIDE (__preinit_array_start = .);
                KEEP (*(.preinit_array))
-               PROVIDE_HIDDEN (__preinit_array_end = .);
-               PROVIDE_HIDDEN (__init_array_start = .);
+               PROVIDE (__preinit_array_end = .);
+               PROVIDE (__init_array_start = .);
                KEEP (*(SORT(.init_array.*)))
                KEEP (*(.init_array))
-               PROVIDE_HIDDEN (__init_array_end = .);
-               PROVIDE_HIDDEN (__fini_array_start = .);
+               PROVIDE (__init_array_end = .);
+               PROVIDE (__fini_array_start = .);
                KEEP (*(.fini_array))
                KEEP (*(SORT(.fini_array.*)))
-               PROVIDE_HIDDEN (__fini_array_end = .);
+               PROVIDE (__fini_array_end = .);
        } >DATA
 
        . = ALIGN(4);
index c5c4de480be3358bc64a3925b9451a0d52857e26..11ac4b62102eadc1a5903b773953ee319c774786 100644 (file)
@@ -83,17 +83,17 @@ SECTIONS
        {
                *(.init)
         *(.fini)
-               PROVIDE_HIDDEN (__preinit_array_start = .);
+               PROVIDE (__preinit_array_start = .);
                KEEP (*(.preinit_array))
-               PROVIDE_HIDDEN (__preinit_array_end = .);
-               PROVIDE_HIDDEN (__init_array_start = .);
+               PROVIDE (__preinit_array_end = .);
+               PROVIDE (__init_array_start = .);
                KEEP (*(SORT(.init_array.*)))
                KEEP (*(.init_array))
-               PROVIDE_HIDDEN (__init_array_end = .);
-               PROVIDE_HIDDEN (__fini_array_start = .);
+               PROVIDE (__init_array_end = .);
+               PROVIDE (__fini_array_start = .);
                KEEP (*(.fini_array))
                KEEP (*(SORT(.fini_array.*)))
-               PROVIDE_HIDDEN (__fini_array_end = .);
+               PROVIDE (__fini_array_end = .);
        } >CODE
 
        . = ALIGN(4);
index 99f2d2628ab4a7ea3cd68ac550985933ea03261a..c60b9f65ca7bd50632cdcb73149beb7091b9b49d 100644 (file)
  */
 #include "typedefs.h"
 
+/* Increase the size of this dummy global data to create a larger ROM image */
+static const char test[] =
+               "ljasdfljkasdfljsaflsjadflksjadflksjadfasdfsadfsa"
+               "ljasdfljkasdfljsaflsjadflksjadflksjadfasdfsadfsa"
+               "ljasdfljkasdfljsaflsjadflksjadflksjadfasdfsadfsa"
+               "ljasdfljkasdfljsaflsjadflksjadflksjadfasdfsadfsa"
+               "ljasdfljkasdfljsaflsjadflksjadflksjadfasdfsadfsa"
+               "ljasdfljkasdfljsaflsjadflksjadflksjadfasdfsadfsa"
+               "ljasdfljkasdfljsaflsjadflksjadflksjadfasdfsadfsa"
+               "ljasdfljkasdfljsaflsjadflksjadflksjadfasdfsadfsa"
+               "ljasdfljkasdfljsaflsjadflksjadflksjadfasdfsadfsa";
+
+
+
 /*=========================================================================*/
 /*  DEFINE: All Structures and Common Constants                            */
 /*=========================================================================*/