From c1774fe6ef9ea2c622b1aa07906050b22bb8d527 Mon Sep 17 00:00:00 2001 From: nickc Date: Tue, 8 Aug 2000 22:04:32 +0000 Subject: [PATCH] Define __bss_size symbol to indicate the final size of .bss section. --- ld/ChangeLog | 6 ++++++ ld/scripttempl/elfm68hc11.sc | 2 ++ ld/scripttempl/elfm68hc12.sc | 2 ++ 3 files changed, 10 insertions(+) diff --git a/ld/ChangeLog b/ld/ChangeLog index 32304c4393..1d5ab752c2 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2000-08-08 Stephane Carrez + + * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate + the final size of .bss section. + * scripttempl/elfm68hc12.sc: Likewise. + 2000-08-04 Alan Modra * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to diff --git a/ld/scripttempl/elfm68hc11.sc b/ld/scripttempl/elfm68hc11.sc index 668fc0aa87..19cf06e119 100644 --- a/ld/scripttempl/elfm68hc11.sc +++ b/ld/scripttempl/elfm68hc11.sc @@ -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 --git a/ld/scripttempl/elfm68hc12.sc b/ld/scripttempl/elfm68hc12.sc index 8a4eb44835..bd70c13fbd 100644 --- a/ld/scripttempl/elfm68hc12.sc +++ b/ld/scripttempl/elfm68hc12.sc @@ -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}} -- 2.11.0