binutils-gdb/ld/scripttempl/h8500c.sc

62 lines
871 B
Python
Raw Normal View History

TORS="
___ctors = . ;
*(.ctors)
___ctors_end = . ;
___dtors = . ;
*(.dtors)
___dtors_end = . ;"
1999-05-03 09:29:11 +02:00
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(${ARCH})
/* Compact model - code < 64k, data > 64k */
SECTIONS
{
1999-05-03 09:29:11 +02:00
.text 0x10000 :
{
*(.text)
1999-05-03 09:29:11 +02:00
*(.strings)
${RELOCATING+ _etext = . ; }
1999-05-03 09:29:11 +02:00
} ${RELOCATING+ > ram}
.data 0x20000 :
{
*(.data)
${RELOCATING+ _edata = . ; }
1999-05-03 09:29:11 +02:00
} ${RELOCATING+ > ram}
.rdata 0x30000 :
{
*(.rdata);
${CONSTRUCTING+${TORS}}
} ${RELOCATING+ > ram}
1999-05-03 09:29:11 +02:00
.bss 0x40000 :
{
${RELOCATING+ __start_bss = . ; }
*(.bss)
*(COMMON)
${RELOCATING+ _end = . ; }
1999-05-03 09:29:11 +02:00
} ${RELOCATING+ >ram}
1999-05-03 09:29:11 +02:00
.stack 0x5fff0 :
{
${RELOCATING+ _stack = . ; }
*(.stack)
1999-05-03 09:29:11 +02:00
} ${RELOCATING+ > topram}
.stab 0 ${RELOCATING+(NOLOAD)} :
{
[ .stab ]
}
.stabstr 0 ${RELOCATING+(NOLOAD)} :
{
[ .stabstr ]
}
1999-05-03 09:29:11 +02:00
}
EOF