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 <oyvind.harboe@zylin.com>
This commit is contained in:
Øyvind Harboe 2010-01-20 15:11:09 +01:00
parent ff976cdb29
commit 87cb29dcfe
4 changed files with 28 additions and 12 deletions

View File

@ -0,0 +1,2 @@
.dep
src/main.lst

View 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);

View 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);

View File

@ -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 */
/*=========================================================================*/