mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
tic54x/ibmc54xdsp target for ld.
This commit is contained in:
52
ld/scripttempl/tic54xcoff.sc
Normal file
52
ld/scripttempl/tic54xcoff.sc
Normal file
@ -0,0 +1,52 @@
|
||||
# default linker script for c54x, TI COFF(1).
|
||||
# patterned after description in TI Aseembler Tools PDF, SPRU102C, 7-53
|
||||
test -z "$ENTRY" && ENTRY=_c_int00
|
||||
|
||||
cat <<EOF
|
||||
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
||||
OUTPUT_ARCH("${OUTPUT_ARCH}")
|
||||
|
||||
MEMORY
|
||||
{
|
||||
PAGE 0 : prog (RXI) : ORIGIN = 0x000080, LENGTH = 0xFF00
|
||||
PAGE 1 : data (W) : ORIGIN = 0x000080, LENGTH = 0xFF80
|
||||
}
|
||||
|
||||
ENTRY(${ENTRY})
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
.text :
|
||||
{
|
||||
___text__ = .;
|
||||
*(.text)
|
||||
etext = .;
|
||||
___etext__ = .;
|
||||
} > prog
|
||||
.data :
|
||||
{
|
||||
___data__ = .;
|
||||
__data = .;
|
||||
*(.data)
|
||||
__edata = .;
|
||||
edata = .;
|
||||
___edata__ = .;
|
||||
} > prog
|
||||
/* all other initialized sections should be allocated here */
|
||||
.cinit :
|
||||
{
|
||||
*(.cinit)
|
||||
} > prog
|
||||
.bss :
|
||||
{
|
||||
___bss__ = .;
|
||||
__bss = .;
|
||||
*(.bss)
|
||||
*(COMMON)
|
||||
__ebss = .;
|
||||
end = .;
|
||||
___end__ = .;
|
||||
} > data
|
||||
/* all other uninitialized sections should be allocated here */
|
||||
}
|
||||
EOF
|
Reference in New Issue
Block a user