diff options
author | Jeff Law <law@redhat.com> | 1996-03-29 07:01:22 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1996-03-29 07:01:22 +0000 |
commit | 0e88ffa2842280d971f7502b2864836a2118596e (patch) | |
tree | 588791c1aaf628830d193959f2797c0946173a02 /ld/scripttempl/h8300.sc | |
parent | 9399a257b1127ff13c6c81738ee2bffddfe2fb5a (diff) | |
download | gdb-0e88ffa2842280d971f7502b2864836a2118596e.zip gdb-0e88ffa2842280d971f7502b2864836a2118596e.tar.gz gdb-0e88ffa2842280d971f7502b2864836a2118596e.tar.bz2 |
* 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.
Diffstat (limited to 'ld/scripttempl/h8300.sc')
-rw-r--r-- | ld/scripttempl/h8300.sc | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/ld/scripttempl/h8300.sc b/ld/scripttempl/h8300.sc new file mode 100644 index 0000000..ce10436 --- /dev/null +++ b/ld/scripttempl/h8300.sc @@ -0,0 +1,61 @@ +cat <<EOF +OUTPUT_FORMAT("${OUTPUT_FORMAT}") +OUTPUT_ARCH(${ARCH}) + +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 = 65536 - 256 - 4 + topram : o = 0xfffc, l = 4 +} + +SECTIONS +{ +.vectors : { +/* Use something like this to place a specific function's address + into the vector table. + + SHORT(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 |