|
Last change
on this file since 3388 was 10, checked in by bird, 23 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:
780 bytes
|
| Line | |
|---|
| 1 | DATA_ADDR=0x40000000
|
|---|
| 2 | test "$LD_FLAG" = "N" && DATA_ADDR=.
|
|---|
| 3 | cat <<EOF
|
|---|
| 4 | OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
|---|
| 5 | OUTPUT_ARCH(${ARCH})
|
|---|
| 6 | ENTRY("\$START\$")
|
|---|
| 7 | ${RELOCATING+${LIB_SEARCH_DIRS}}
|
|---|
| 8 | SECTIONS
|
|---|
| 9 | {
|
|---|
| 10 | .text 0x1000 ${RELOCATING++${TEXT_START_ADDR}}:
|
|---|
| 11 | {
|
|---|
| 12 | ${RELOCATING+__text_start = .};
|
|---|
| 13 | CREATE_OBJECT_SYMBOLS
|
|---|
| 14 | *(.PARISC.stubs)
|
|---|
| 15 | *(.text)
|
|---|
| 16 | ${RELOCATING+etext = .};
|
|---|
| 17 | ${RELOCATING+_etext = .};
|
|---|
| 18 | }
|
|---|
| 19 | ${RELOCATING+. = ${DATA_ADDR};}
|
|---|
| 20 | .data :
|
|---|
| 21 | {
|
|---|
| 22 | ${RELOCATING+ . = . + 0x1000 };
|
|---|
| 23 | ${RELOCATING+__data_start = .};
|
|---|
| 24 | *(.data)
|
|---|
| 25 | ${CONSTRUCTING+CONSTRUCTORS}
|
|---|
| 26 | ${RELOCATING+edata = .};
|
|---|
| 27 | ${RELOCATING+_edata = .};
|
|---|
| 28 | }
|
|---|
| 29 | ${RELOCATING+. = ${DATA_ADDR} + SIZEOF(.data);}
|
|---|
| 30 | .bss :
|
|---|
| 31 | {
|
|---|
| 32 | *(.bss)
|
|---|
| 33 | *(COMMON)
|
|---|
| 34 | ${RELOCATING+end = . };
|
|---|
| 35 | ${RELOCATING+_end = . };
|
|---|
| 36 | }
|
|---|
| 37 | }
|
|---|
| 38 | EOF
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.