This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH]: Define bss_size symbol for 68HC1x linker
- To: binutils at sources dot redhat dot com
- Subject: [PATCH]: Define bss_size symbol for 68HC1x linker
- From: Stephane Carrez <Stephane dot Carrez at worldnet dot fr>
- Date: Tue, 08 Aug 2000 00:25:50 +0200
Hi!
The following patch fixes the 68hc1x linker scripts to define the
__bss_size symbol used by the startup code to setup the bss.
Can you integrate this patch?
Thanks,
Stephane
ChangeLog for ld/ChangeLog
2000-08-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
the final size of .bss section.
* scripttempl/elfm68hc12.sc: Likewise.
diff -Nrup --exclude-from=cvs-exclude.lst /src/gnu/cygnus/binutils/ld/scripttempl/elfm68hc11.sc binutils/ld/scripttempl/elfm68hc11.sc
--- /src/gnu/cygnus/binutils/ld/scripttempl/elfm68hc11.sc Mon Jun 19 03:22:43 2000
+++ binutils/ld/scripttempl/elfm68hc11.sc Sun Jul 30 12:41:55 2000
@@ -311,6 +311,8 @@ SECTIONS
*(COMMON)
${RELOCATING+PROVIDE (_end = .);}
} ${RELOCATING+ > ${DATA_MEMORY}}
+ ${RELOCATING+__bss_size = SIZEOF(.bss);}
+ ${RELOCATING+PROVIDE (__bss_size = SIZEOF(.bss));}
${RELOCATING+${CTOR}}
${RELOCATING+${DTOR}}
diff -Nrup --exclude-from=cvs-exclude.lst /src/gnu/cygnus/binutils/ld/scripttempl/elfm68hc12.sc binutils/ld/scripttempl/elfm68hc12.sc
--- /src/gnu/cygnus/binutils/ld/scripttempl/elfm68hc12.sc Mon Jun 19 03:22:43 2000
+++ binutils/ld/scripttempl/elfm68hc12.sc Sun Jul 30 16:43:20 2000
@@ -285,6 +285,8 @@ SECTIONS
${RELOCATING+_edata = .;}
${RELOCATING+PROVIDE (edata = .);}
} ${RELOCATING+ > ${DATA_MEMORY}}
+ ${RELOCATING+__bss_size = SIZEOF(.bss);}
+ ${RELOCATING+PROVIDE (__bss_size = SIZEOF(.bss));}
${RELOCATING+__data_section_size = SIZEOF(.data);}
${RELOCATING+PROVIDE (__data_section_size = SIZEOF(.data));}