URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
205 |
julius |
TEMPLATE_NAME=elf32
|
2 |
|
|
SCRIPT_NAME=elf
|
3 |
|
|
OUTPUT_FORMAT="elf32-powerpc"
|
4 |
|
|
NO_REL_RELOCS=yes
|
5 |
|
|
ARCH=powerpc
|
6 |
|
|
MACHINE=
|
7 |
|
|
EMBEDDED=yes
|
8 |
|
|
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
|
9 |
|
|
|
10 |
|
|
# The data below is taken from the windiss.dld linker script that comes with
|
11 |
|
|
# the Diab linker.
|
12 |
|
|
TEXT_START_ADDR=0x100000
|
13 |
|
|
DATA_START_SYMBOLS='__DATA_ROM = .; __DATA_RAM = .;'
|
14 |
|
|
EXECUTABLE_SYMBOLS='__HEAP_START = .; __SP_INIT = 0x800000; __SP_END = __SP_INIT - 0x20000; __HEAP_END = __SP_END; __DATA_END = _edata; __BSS_START = __bss_start; __BSS_END = _end; __HEAP_START = _end;'
|
15 |
|
|
|
16 |
|
|
# The Diab tools use a different init/fini convention. Initialization code
|
17 |
|
|
# is place in sections named ".init$NN". These sections are then concatenated
|
18 |
|
|
# into the .init section. It is important that .init$00 be first and .init$99
|
19 |
|
|
# be last. The other sections should be sorted, but the current linker script
|
20 |
|
|
# parse does not seem to allow that with the SORT keyword in this context.
|
21 |
|
|
INIT_START='*(.init$00); *(.init$0[1-9]); *(.init$[1-8][0-9]); *(.init$9[0-8])'
|
22 |
|
|
INIT_END='*(.init$99)'
|
23 |
|
|
FINI_START='*(.fini$00); *(.fini$0[1-9]); *(.fini$[1-8][0-9]); *(.fini$9[0-8])'
|
24 |
|
|
FINI_END='*(.fini$99)'
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.