diff options
author | Michael Tiemann <tiemann@cygnus> | 1994-11-26 00:17:52 +0000 |
---|---|---|
committer | Michael Tiemann <tiemann@cygnus> | 1994-11-26 00:17:52 +0000 |
commit | fb870b50a7fb8e68a4412f0c0e133de0f2844447 (patch) | |
tree | 6e85d5d7a4db535fd8fc1e6a530fdac169b4ad8e /ld | |
parent | 52e895cbb4ca54301e9bd239967f7f42407eeea4 (diff) | |
download | gdb-fb870b50a7fb8e68a4412f0c0e133de0f2844447.zip gdb-fb870b50a7fb8e68a4412f0c0e133de0f2844447.tar.gz gdb-fb870b50a7fb8e68a4412f0c0e133de0f2844447.tar.bz2 |
Add changes from customer since last work.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/emulparams/rce.sh | 7 | ||||
-rw-r--r-- | ld/scripttempl/rce.sc | 66 |
2 files changed, 26 insertions, 47 deletions
diff --git a/ld/emulparams/rce.sh b/ld/emulparams/rce.sh index e32615e..7bc1f86 100644 --- a/ld/emulparams/rce.sh +++ b/ld/emulparams/rce.sh @@ -1,5 +1,6 @@ SCRIPT_NAME=rce -OUTPUT_FORMAT="aout-rce" -TEXT_START_ADDR=0x8000 -PAGE_SIZE=128 +OUTPUT_FORMAT="a.out-rce" +PAGE_SIZE=0x1000 +TEXT_START_ADDR=0 +NONPAGED_TEXT_START_ADDR=0 ARCH=rce diff --git a/ld/scripttempl/rce.sc b/ld/scripttempl/rce.sc index bd763cb..0643925 100644 --- a/ld/scripttempl/rce.sc +++ b/ld/scripttempl/rce.sc @@ -2,53 +2,31 @@ cat <<EOF OUTPUT_FORMAT("${OUTPUT_FORMAT}") OUTPUT_ARCH(${ARCH}) -MEMORY { - ram : o = 0x1000, l = 512k - } - -SECTIONS -{ -.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+ 0x30000 } : - { - ${RELOCATING+ _stack = . ; } - *(.stack) - } ${RELOCATING+ > ram} - .stab 0 ${RELOCATING+(NOLOAD)} : +${RELOCATING+${LIB_SEARCH_DIRS}} +${RELOCATING+__DYNAMIC = 0;} +${STACKZERO+${RELOCATING+${STACKZERO}}} +${SHLIB_PATH+${RELOCATING+${SHLIB_PATH}}} +SECTIONS +{ + .text ${RELOCATING+${TEXT_START_ADDR}}: + { + CREATE_OBJECT_SYMBOLS + *(.text) + ${RELOCATING+_etext = ${DATA_ALIGNMENT};} + } + .data ${RELOCATING+${DATA_ALIGNMENT}} : { - [ .stab ] + *(.data) + ${CONSTRUCTING+CONSTRUCTORS} + ${RELOCATING+_edata = .;} } - .stabstr 0 ${RELOCATING+(NOLOAD)} : + .bss ${RELOCATING+SIZEOF(.data) + ADDR(.data)} : { - [ .stabstr ] + ${RELOCATING+ __bss_start = .}; + *(.bss) + *(COMMON) + ${RELOCATING+_end = . }; + ${RELOCATING+__end = . }; } } EOF |