Fix regression from change
[binutils.git] / ld / emulparams / elf32epiphany.sh
blobfd2401296c11495e011141ce67524150214a7bd8
1 TEMPLATE_NAME=elf32
2 MACHINE=
3 SCRIPT_NAME=elf
4 OUTPUT_FORMAT="elf32-epiphany"
5 NO_REL_RELOCS=yes
6 # See also `include/elf/epiphany.h'
8 MMR_ADDR=0x00000000
9 MMR_LEN=0x100
11 #RESERVED_ADDR=0x00000100
12 #RESERVED_LEN=8128
14 IVT_ADDR=0x00000000
15 IVT_LEN=0x040
17 # ??? This fails: 'Not enough room for program headers, try linking with -N'
18 #TEXT_START_ADDR=0x00000040
20 #The following two lines would allow small to medium sized programs
21 #to run in the first 1 MB.
22 #TEXT_START_ADDR=0x00000060
23 #EXECUTABLE_SYMBOLS='PROVIDE (___bss_start = __bss_start); PROVIDE (___heap_start = end); PROVIDE (___heap_end = (0x0c0000)); PROVIDE (___stack = (0x0ffff0));'
25 TEXT_START_ADDR='DEFINED (___text_start) ? ___text_start : 0x80000000'
26 EXECUTABLE_SYMBOLS='PROVIDE (___bss_start = __bss_start); PROVIDE (___heap_start = end); PROVIDE (___heap_end = (0x81800000)); PROVIDE (___stack = (0x81fffff0));'
28 #Smuggle an alignemnt directive in here so that .bss is aligned.
29 OTHER_SDATA_SECTIONS='. = ALIGN(8);'
32 ARCH=epiphany
33 ENTRY=_start
34 EMBEDDED=yes
35 ELFSIZE=32
36 ALIGNMENT=8
37 #MAXPAGESIZE=8192
38 MAXPAGESIZE=1
39 WRITABLE_RODATA=
40 #OTHER_RELOCATING_SECTIONS=
41 #OTHER_READONLY_SECTIONS=
42 #OTHER_READWRITE_SECTIONS=