old-cross-binutils/ld/scripttempl/h8300h.sc
Jeff Law 0e88ffa284 * scripttempl/h8300.sc: Make vectors section 0xc4 bytes long
so as not to overwrite the magic syscall entry at 0xc4.
        * scripttempl/h8300h.sc: Likewise.
hmse.
1996-03-29 07:01:22 +00:00

63 lines
1.2 KiB
Scala

cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(h8300h)
/* The memory size is 256KB to coincide with the simulator.
Don't change either without considering the other. */
MEMORY
{
/* 0xc4 is a magic entry. We should have the linker just
skip over it one day... */
vectors : o = 0x0000, l = 196
magicvectors : o = 0xc4, l = 60
ram : o = 0x0100, l = 256K - 256 - 4
topram : o = 0x3fffc, l = 4
}
SECTIONS
{
.vectors : {
/* Use something like this to place a specific function's address
into the vector table.
LONG(ABSOLUTE(_foobar))
*/
*(.vectors)
} ${RELOCATING+ > vectors}
.text : {
*(.text)
*(.strings)
${RELOCATING+ _etext = . ; }
} ${RELOCATING+ > ram}
.tors : {
___ctors = . ;
*(.ctors)
___ctors_end = . ;
___dtors = . ;
*(.dtors)
___dtors_end = . ;
} ${RELOCATING+ > ram}
.data : {
*(.data)
${RELOCATING+ _edata = . ; }
} ${RELOCATING+ > ram}
.bss : {
${RELOCATING+ _bss_start = . ;}
*(.bss)
*(COMMON)
${RELOCATING+ _end = . ; }
} ${RELOCATING+ >ram}
.stack : {
${RELOCATING+ _stack = . ; }
*(.stack)
} ${RELOCATING+ > topram}
.stab 0 ${RELOCATING+(NOLOAD)} : {
[ .stab ]
}
.stabstr 0 ${RELOCATING+(NOLOAD)} : {
[ .stabstr ]
}
}
EOF