aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-08-08 22:04:32 +0000
committerNick Clifton <nickc@redhat.com>2000-08-08 22:04:32 +0000
commit236d5abf995ea8c4948130437fc84372bcd5de4e (patch)
tree332ce45ba07194c3810c8dc4f18088dcb2fd1755 /ld
parent8fc2faa7f6edb14813e019bd7bfbe018df3ca6ba (diff)
downloadgdb-236d5abf995ea8c4948130437fc84372bcd5de4e.zip
gdb-236d5abf995ea8c4948130437fc84372bcd5de4e.tar.gz
gdb-236d5abf995ea8c4948130437fc84372bcd5de4e.tar.bz2
Define __bss_size symbol to indicate the final size of .bss section.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/scripttempl/elfm68hc11.sc2
-rw-r--r--ld/scripttempl/elfm68hc12.sc2
3 files changed, 10 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 32304c4..1d5ab75 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+2000-08-08 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.
+
2000-08-04 Alan Modra <alan@linuxcare.com.au>
* emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
diff --git a/ld/scripttempl/elfm68hc11.sc b/ld/scripttempl/elfm68hc11.sc
index 668fc0a..19cf06e 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 8a4eb44..bd70c13 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}}