fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / binutils / ld / emulparams / zpuelf.sh
blob03b9afc342062a3897e2be7a2fa1880c6675080a
1 MACHINE=
2 SCRIPT_NAME=zpu
3 OUTPUT_FORMAT="elf32-zpu"
4 TEXT_START_ADDR=0x0
5 TEMPLATE_NAME=elf32
6 EXTRA_EM_FILE=zpuelf
7 OTHER_TEXT_SECTIONS='*(.glue_7t) *(.glue_7)'
8 OTHER_BSS_SYMBOLS='__bss_start__ = .;'
9 OTHER_BSS_END_SYMBOLS='_bss_end__ = . ; __bss_end__ = . ; __end__ = . ;'
10 OTHER_SECTIONS='.note.gnu.zpu.ident 0 : { KEEP (*(.note.gnu.zpu.ident)) }'
12 DATA_START_SYMBOLS='__data_start = . ;';
14 GENERATE_SHLIB_SCRIPT=yes
16 ARCH=zpu
17 MACHINE=
18 MAXPAGESIZE=1
19 ENTRY=_start
20 EMBEDDED=yes
22 # ZPU does not support .s* sections.
23 NO_SMALL_DATA=yes
25 CTOR_START='___ctors = .;'
26 CTOR_END='___ctors_end = .;'
27 DTOR_START='___dtors = .;'
28 DTOR_END='___dtors_end = .;'
30 STACK_ADDR=$((0x1000000-0x10000))