|
Last change
on this file since 3344 was 607, checked in by bird, 22 years ago |
|
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | TEMPLATE_NAME=elf32
|
|---|
| 2 | SCRIPT_NAME=elf
|
|---|
| 3 | OUTPUT_FORMAT="elf32-powerpc"
|
|---|
| 4 | ARCH=powerpc
|
|---|
| 5 | MACHINE=
|
|---|
| 6 | EMBEDDED=yes
|
|---|
| 7 | MAXPAGESIZE=0x10000
|
|---|
| 8 |
|
|---|
| 9 | # The data below is taken from the windiss.dld linker script that comes with
|
|---|
| 10 | # the Diab linker.
|
|---|
| 11 | TEXT_START_ADDR=0x100000
|
|---|
| 12 | DATA_START_SYMBOLS='__DATA_ROM = .; __DATA_RAM = .;'
|
|---|
| 13 | 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;'
|
|---|
| 14 |
|
|---|
| 15 | # The Diab tools use a different init/fini convention. Initialization code
|
|---|
| 16 | # is place in sections named ".init$NN". These sections are then concatenated
|
|---|
| 17 | # into the .init section. It is important that .init$00 be first and .init$99
|
|---|
| 18 | # be last. The other sections should be sorted, but the current linker script
|
|---|
| 19 | # parse does not seem to allow that with the SORT keyword in this context.
|
|---|
| 20 | INIT_START='*(.init$00); *(.init$0[1-9]); *(.init$[1-8][0-9]); *(.init$9[0-8])'
|
|---|
| 21 | INIT_END='*(.init$99)'
|
|---|
| 22 | FINI_START='*(.fini$00); *(.fini$0[1-9]); *(.fini$[1-8][0-9]); *(.fini$9[0-8])'
|
|---|
| 23 | FINI_END='*(.fini$99)'
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.