aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ld/ChangeLog6
-rwxr-xr-xld/emulparams/bfin.sh4
-rw-r--r--ld/scripttempl/elf.sc3
3 files changed, 10 insertions, 3 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 0b853f7..51f47af 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+2005-12-28 Jie Zhang <jie.zhang@analog.com>
+
+ * 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 <hongjiu.lu@intel.com>
* emultempl/xtensaelf.em (elf_xtensa_place_orphan): Delete.
diff --git a/ld/emulparams/bfin.sh b/ld/emulparams/bfin.sh
index c8cea76..86d21b2 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 d7b0a79..ac0c725 100644
--- a/ld/scripttempl/elf.sc
+++ b/ld/scripttempl/elf.sc
@@ -452,8 +452,7 @@ cat <<EOF
${LARGE_SECTIONS}
${RELOCATING+. = ALIGN(${ALIGNMENT});}
${RELOCATING+${OTHER_END_SYMBOLS}}
- ${RELOCATING+_end = .;}
- ${RELOCATING+PROVIDE (end = .);}
+ ${RELOCATING+${END_SYMBOLS-_end = .; PROVIDE (end = .);}}
${RELOCATING+${DATA_SEGMENT_END}}
/* Stabs debugging sections. */