Alan Modra | 6f2750f | 2016-01-01 21:55:12 +1030 | [diff] [blame] | 1 | # Copyright (C) 2014-2016 Free Software Foundation, Inc. |
Nick Clifton | 985743c | 2014-08-20 10:34:58 +0100 | [diff] [blame] | 2 | # |
| 3 | # Copying and distribution of this file, with or without modification, |
| 4 | # are permitted in any medium without royalty provided the copyright |
| 5 | # notice and this notice are preserved. |
| 6 | |
Richard Henderson | 252b513 | 1999-05-03 07:29:11 +0000 | [diff] [blame] | 7 | DATA_ADDR=0x40000000 |
| 8 | test "$LD_FLAG" = "N" && DATA_ADDR=. |
Nick Clifton | 985743c | 2014-08-20 10:34:58 +0100 | [diff] [blame] | 9 | |
Richard Henderson | 252b513 | 1999-05-03 07:29:11 +0000 | [diff] [blame] | 10 | cat <<EOF |
Alan Modra | 6f2750f | 2016-01-01 21:55:12 +1030 | [diff] [blame] | 11 | /* Copyright (C) 2014-2016 Free Software Foundation, Inc. |
Nick Clifton | 985743c | 2014-08-20 10:34:58 +0100 | [diff] [blame] | 12 | |
| 13 | Copying and distribution of this script, with or without modification, |
| 14 | are permitted in any medium without royalty provided the copyright |
| 15 | notice and this notice are preserved. */ |
| 16 | |
Richard Henderson | 252b513 | 1999-05-03 07:29:11 +0000 | [diff] [blame] | 17 | OUTPUT_FORMAT("${OUTPUT_FORMAT}") |
| 18 | OUTPUT_ARCH(${ARCH}) |
Alan Modra | 596d6d9 | 2009-09-09 11:59:14 +0000 | [diff] [blame] | 19 | ${RELOCATING+ENTRY("\$START\$")} |
Richard Henderson | 252b513 | 1999-05-03 07:29:11 +0000 | [diff] [blame] | 20 | ${RELOCATING+${LIB_SEARCH_DIRS}} |
| 21 | SECTIONS |
| 22 | { |
| 23 | .text 0x1000 ${RELOCATING++${TEXT_START_ADDR}}: |
| 24 | { |
| 25 | ${RELOCATING+__text_start = .}; |
| 26 | CREATE_OBJECT_SYMBOLS |
| 27 | *(.PARISC.stubs) |
| 28 | *(.text) |
| 29 | ${RELOCATING+etext = .}; |
| 30 | ${RELOCATING+_etext = .}; |
| 31 | } |
| 32 | ${RELOCATING+. = ${DATA_ADDR};} |
| 33 | .data : |
| 34 | { |
| 35 | ${RELOCATING+ . = . + 0x1000 }; |
| 36 | ${RELOCATING+__data_start = .}; |
| 37 | *(.data) |
| 38 | ${CONSTRUCTING+CONSTRUCTORS} |
| 39 | ${RELOCATING+edata = .}; |
| 40 | ${RELOCATING+_edata = .}; |
| 41 | } |
| 42 | ${RELOCATING+. = ${DATA_ADDR} + SIZEOF(.data);} |
| 43 | .bss : |
| 44 | { |
| 45 | *(.bss) |
| 46 | *(COMMON) |
| 47 | ${RELOCATING+end = . }; |
| 48 | ${RELOCATING+_end = . }; |
| 49 | } |
| 50 | } |
| 51 | EOF |