From d70c5fc7c56fa9915f594aca8de15b478f3ab5b0 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 17 Feb 2006 14:36:28 +0000 Subject: Add support for the Infineon XC16X. --- ld/scripttempl/elf32xc16x.sc | 61 +++++++++++++++++++++++++++++++++++++++++ ld/scripttempl/elf32xc16xl.sc | 64 +++++++++++++++++++++++++++++++++++++++++++ ld/scripttempl/elf32xc16xs.sc | 64 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 189 insertions(+) create mode 100644 ld/scripttempl/elf32xc16x.sc create mode 100644 ld/scripttempl/elf32xc16xl.sc create mode 100644 ld/scripttempl/elf32xc16xs.sc (limited to 'ld/scripttempl') diff --git a/ld/scripttempl/elf32xc16x.sc b/ld/scripttempl/elf32xc16x.sc new file mode 100644 index 0000000..7ffdc38 --- /dev/null +++ b/ld/scripttempl/elf32xc16x.sc @@ -0,0 +1,61 @@ +cat <introm} + +.text : + { + *(.rodata) + *(.text.*) + *(.text) + ${RELOCATING+ _etext = . ; } + } ${RELOCATING+ > introm} +.data : + { + *(.data) + *(.data.*) + + ${RELOCATING+ _edata = . ; } + } ${RELOCATING+ > dram} + +.bss : + { + ${RELOCATING+ _bss_start = . ;} + *(.bss) + *(COMMON) + ${RELOCATING+ _end = . ; } + } ${RELOCATING+ > dram} + + .ldata : + { + *(.ldata) + } ${RELOCATING+ > ldata} + + + .vects : + { + *(.vects) + } ${RELOCATING+ > vectarea} + +} +EOF diff --git a/ld/scripttempl/elf32xc16xl.sc b/ld/scripttempl/elf32xc16xl.sc new file mode 100644 index 0000000..215b50a --- /dev/null +++ b/ld/scripttempl/elf32xc16xl.sc @@ -0,0 +1,64 @@ +cat < vectarea} */ +.init : + { + *(.init) + } ${RELOCATING+ >introm} + +.text : + { + *(.rodata) + *(.text.*) + *(.text) + ${RELOCATING+ _etext = . ; } + } ${RELOCATING+ > introm} +.data : + { + *(.data) + *(.data.*) + + ${RELOCATING+ _edata = . ; } + } ${RELOCATING+ > dram} + +.bss : + { + ${RELOCATING+ _bss_start = . ;} + *(.bss) + *(COMMON) + ${RELOCATING+ _end = . ; } + } ${RELOCATING+ > dram} + + .ldata : + { + *(.ldata) + } ${RELOCATING+ > ldata} + + + .vects : + { + *(.vects) + } ${RELOCATING+ > vectarea} + + +} +EOF diff --git a/ld/scripttempl/elf32xc16xs.sc b/ld/scripttempl/elf32xc16xs.sc new file mode 100644 index 0000000..215b50a --- /dev/null +++ b/ld/scripttempl/elf32xc16xs.sc @@ -0,0 +1,64 @@ +cat < vectarea} */ +.init : + { + *(.init) + } ${RELOCATING+ >introm} + +.text : + { + *(.rodata) + *(.text.*) + *(.text) + ${RELOCATING+ _etext = . ; } + } ${RELOCATING+ > introm} +.data : + { + *(.data) + *(.data.*) + + ${RELOCATING+ _edata = . ; } + } ${RELOCATING+ > dram} + +.bss : + { + ${RELOCATING+ _bss_start = . ;} + *(.bss) + *(COMMON) + ${RELOCATING+ _end = . ; } + } ${RELOCATING+ > dram} + + .ldata : + { + *(.ldata) + } ${RELOCATING+ > ldata} + + + .vects : + { + *(.vects) + } ${RELOCATING+ > vectarea} + + +} +EOF -- cgit v1.1