diff options
author | Ken Raeburn <raeburn@cygnus> | 1994-09-05 10:53:00 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1994-09-05 10:53:00 +0000 |
commit | 318b02b6b9286f7b45f2c3bef4d0630820cc742b (patch) | |
tree | 83132536bd0dcfff0b4fdc43228c5c9b79fb9925 /ld/scripttempl | |
parent | b50e328324c00272da4f9fadfa68ba2465984717 (diff) | |
download | gdb-318b02b6b9286f7b45f2c3bef4d0630820cc742b.zip gdb-318b02b6b9286f7b45f2c3bef4d0630820cc742b.tar.gz gdb-318b02b6b9286f7b45f2c3bef4d0630820cc742b.tar.bz2 |
ARM Acorn/RISCiX target and host patches from Richard Earnshaw
Diffstat (limited to 'ld/scripttempl')
-rw-r--r-- | ld/scripttempl/riscix.sc | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/ld/scripttempl/riscix.sc b/ld/scripttempl/riscix.sc new file mode 100644 index 0000000..c801a0c --- /dev/null +++ b/ld/scripttempl/riscix.sc @@ -0,0 +1,35 @@ +cat <<EOF +OUTPUT_FORMAT("${OUTPUT_FORMAT}") +OUTPUT_ARCH(${ARCH}) + +${RELOCATING+${LIB_SEARCH_DIRS}} +${RELOCATING+__DYNAMIC = 0;} +${STACKZERO+${RELOCATING+${STACKZERO}}} +${SHLIB_PATH+${RELOCATING+${SHLIB_PATH}}} +SECTIONS +{ + .text ${RELOCATING+${TEXT_START_ADDR}}: + { + CREATE_OBJECT_SYMBOLS + *(.text) + ${PAD_TEXT+${RELOCATING+. = ${DATA_ALIGNMENT};}} + ${RELOCATING+_etext = ${DATA_ALIGNMENT};} + ${RELOCATING+__etext = ${DATA_ALIGNMENT};} + } + .data ${RELOCATING+${DATA_ALIGNMENT}} : + { + *(.data) + ${CONSTRUCTING+CONSTRUCTORS} + ${RELOCATING+_edata = .;} + ${RELOCATING+__edata = .;} + } + .bss ${RELOCATING+SIZEOF(.data) + ADDR(.data)} : + { + ${RELOCATING+ __bss_start = .}; + *(.bss) + *(COMMON) + ${RELOCATING+_end = ALIGN(4) }; + ${RELOCATING+__end = ALIGN(4) }; + } +} +EOF |