Automatic date update in version.in
[binutils-gdb.git] / ld / emulparams / elf32mep.sh
blobf960916b17fc795ae6e5f12c2900474708ad369c
1 MACHINE=
2 SCRIPT_NAME=mep
3 OUTPUT_FORMAT="elf32-mep-little"
4 TEXT_START_ADDR=0x1000
5 ARCH=mep
6 MAXPAGESIZE=256
7 ENTRY=_start
8 EMBEDDED=yes
9 TEMPLATE_NAME=elf
11 if test -n "${RELOCATING}"; then
12 DATA_START_SYMBOLS='__data_start = . ;'
13 OTHER_GOT_SYMBOLS='
14 . = ALIGN(4);
15 __sdabase = . + 0x8000;
16 .srodata : { *(.srodata) *(.srodata.*) *(.gnu.linkonce.srd.*) }
18 OTHER_SDATA_SECTIONS='
19 PROVIDE (__sdabase = .);
20 __assert_tiny_size = ASSERT ((. < __sdabase) || ((. - __sdabase) <= 0x8000),
21 "tiny section overflow");
23 OTHER_READONLY_SECTIONS='
24 __stack = 0x001ffff0;
25 __stack_size = 0x100000;
26 __stack0 = (__stack - (0 * (__stack_size / 1)) + 15) / 16 * 16;
28 .rostacktab :
30 /* Emit a table describing the location of the different stacks.
31 Only 1 processor in the default configuration. */
32 . = ALIGN(4);
33 __stack_table = .;
34 LONG (__stack0);
37 OTHER_END_SYMBOLS='
38 PROVIDE (__heap = _end);
39 PROVIDE (__heap_end = 0);
41 OTHER_TEXT_SECTIONS='
42 *(.ftext) *(.ftext.*) *(.gnu.linkonce.ft.*)
43 . = ALIGN(8);
44 *(.vftext) *(.vftext.*) *(.gnu.linkonce.vf.*)
45 *(.frodata) *(.frodata.*) *(.gnu.linkonce.frd.*)
47 OTHER_READWRITE_SECTIONS='
48 . = ALIGN(4);
49 __tpbase = .;
50 .based : { *(.based) *(.based.*) *(.gnu.linkonce.based.*) }
51 __assert_based_size = ASSERT ((. - __tpbase) <= 0x80, "based section overflow");
52 .far : { *(.far) *(.far.*) *(.gnu.linkonce.far.*) }
54 OTHER_BSS_SECTIONS='
55 __assert_near_size = ASSERT (. <= 0x1000000, "near section overflow");
56 .farbss : { PROVIDE (__farbss_start = .); *(.farbss) *(.farbss.*) PROVIDE (__farbss_end = .); }