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 | |
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')
-rw-r--r-- | ld/ChangeLog | 6 | ||||
-rw-r--r-- | ld/scripttempl/h8300.sc | 61 | ||||
-rw-r--r-- | ld/scripttempl/h8300h.sc | 63 |
3 files changed, 130 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index f2f168d..aa43b8d 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +Fri Mar 29 00:01:29 1996 Jeffrey A Law (law@cygnus.com) + + * scripttempl/h8300.sc: Make vectors section 0xc4 bytes long + so as not to overwrite the magic syscall entry at 0xc4. + * scripttempl/h8300h.sc: Likewise. + Thu Mar 28 11:05:47 1996 Doug Evans <dje@canuck.cygnus.com> * configure.tgt (sparc64-*-solaris2*): Delete. 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 diff --git a/ld/scripttempl/h8300h.sc b/ld/scripttempl/h8300h.sc new file mode 100644 index 0000000..4e2276a --- /dev/null +++ b/ld/scripttempl/h8300h.sc @@ -0,0 +1,63 @@ +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 |