From fb870b50a7fb8e68a4412f0c0e133de0f2844447 Mon Sep 17 00:00:00 2001 From: Michael Tiemann Date: Sat, 26 Nov 1994 00:17:52 +0000 Subject: Add changes from customer since last work. --- ld/emulparams/rce.sh | 7 +++--- ld/scripttempl/rce.sc | 66 +++++++++++++++++---------------------------------- 2 files changed, 26 insertions(+), 47 deletions(-) (limited to 'ld') 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 < 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 -- cgit v1.1