From: Øyvind H. <go...@us...> - 2010-01-20 15:12:59
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 87cb29dcfe1e6900620319c3f90ed67f8ebefa0e (commit) from ff976cdb29686ae9aa47687c35402c66978956d6 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 87cb29dcfe1e6900620319c3f90ed67f8ebefa0e Author: Ãyvind Harboe <oyv...@zy...> Date: Wed Jan 20 15:11:09 2010 +0100 testing: fix str710 test case now builds 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 <oyv...@zy...> diff --git a/testing/examples/STR710Test/.gitignore b/testing/examples/STR710Test/.gitignore new file mode 100644 index 0000000..a2d3f5a --- /dev/null +++ b/testing/examples/STR710Test/.gitignore @@ -0,0 +1,2 @@ +.dep +src/main.lst diff --git a/testing/examples/STR710Test/prj/hitex_str7_ram.ld b/testing/examples/STR710Test/prj/hitex_str7_ram.ld index 7ea221a..a0b2a3c 100644 --- a/testing/examples/STR710Test/prj/hitex_str7_ram.ld +++ b/testing/examples/STR710Test/prj/hitex_str7_ram.ld @@ -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); diff --git a/testing/examples/STR710Test/prj/hitex_str7_rom.ld b/testing/examples/STR710Test/prj/hitex_str7_rom.ld index c5c4de4..11ac4b6 100644 --- a/testing/examples/STR710Test/prj/hitex_str7_rom.ld +++ b/testing/examples/STR710Test/prj/hitex_str7_rom.ld @@ -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); diff --git a/testing/examples/STR710Test/src/main.c b/testing/examples/STR710Test/src/main.c index 99f2d26..c60b9f6 100644 --- a/testing/examples/STR710Test/src/main.c +++ b/testing/examples/STR710Test/src/main.c @@ -41,6 +41,20 @@ */ #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 */ /*=========================================================================*/ ----------------------------------------------------------------------- Summary of changes: testing/examples/STR710Test/.gitignore | 2 ++ testing/examples/STR710Test/prj/hitex_str7_ram.ld | 12 ++++++------ testing/examples/STR710Test/prj/hitex_str7_rom.ld | 12 ++++++------ testing/examples/STR710Test/src/main.c | 14 ++++++++++++++ 4 files changed, 28 insertions(+), 12 deletions(-) create mode 100644 testing/examples/STR710Test/.gitignore hooks/post-receive -- Main OpenOCD repository |