OSDN Git Service

Define __bss_size symbol to indicate the final size of .bss section.
[pf3gnuchains/pf3gnuchains4x.git] / ld / scripttempl / elfm68hc12.sc
index 8a4eb44..bd70c13 100644 (file)
@@ -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}}