From cdc34721c45ba23a37cb9870b6f122a8e3e3ced0 Mon Sep 17 00:00:00 2001 From: Jie Zhang Date: Wed, 28 Dec 2005 06:01:48 +0000 Subject: [PATCH] * emulparams/bfin.sh: Define DATA_END_SYMBOLS and END_SYMBOLS. And add a prefix '_' to ENTRY. * scripttempl/elf.sc: Add END_SYMBOLS. --- ld/ChangeLog | 6 ++++++ ld/emulparams/bfin.sh | 4 +++- ld/scripttempl/elf.sc | 3 +-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 0b853f7b67c..51f47af3391 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2005-12-28 Jie Zhang + + * emulparams/bfin.sh: Define DATA_END_SYMBOLS and END_SYMBOLS. + And add a prefix '_' to ENTRY. + * scripttempl/elf.sc: Add END_SYMBOLS. + 2005-12-27 H.J. Lu * emultempl/xtensaelf.em (elf_xtensa_place_orphan): Delete. diff --git a/ld/emulparams/bfin.sh b/ld/emulparams/bfin.sh index c8cea7616a8..86d21b253c9 100755 --- a/ld/emulparams/bfin.sh +++ b/ld/emulparams/bfin.sh @@ -6,8 +6,10 @@ TARGET_PAGE_SIZE=0x1000 NONPAGED_TEXT_START_ADDR=${TEXT_START_ADDR} ARCH=bfin MACHINE= -ENTRY=_start +ENTRY=__start TEMPLATE_NAME=elf32 GENERATE_SHLIB_SCRIPT=yes EMBEDDED=yes EXTRA_EM_FILE=bfin +DATA_END_SYMBOLS="__edata = .; PROVIDE (_edata = .);" +END_SYMBOLS="__end = .; PROVIDE (_end = .);" diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc index d7b0a79c62e..ac0c7256e2e 100644 --- a/ld/scripttempl/elf.sc +++ b/ld/scripttempl/elf.sc @@ -452,8 +452,7 @@ cat <