This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH]: Define bss_size symbol for 68HC1x linker


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));}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]