summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-10-28 03:52:01 +0000
committerIan Lance Taylor <ian@airs.com>1999-10-28 03:52:01 +0000
commit6642600edfab41c4f1aed047ae3f53992c37c3b2 (patch)
treec7a8289901bcedc84061aed54752e3fae9e57936 /bfd
parentc25e0780514e3cd0bd12983a54c69cc2b8a7b673 (diff)
downloadbinutils-redhat-6642600edfab41c4f1aed047ae3f53992c37c3b2.tar.gz
* stabs.c (_bfd_link_section_stabs): Make sure .stabstr section
starts with a zero.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/stabs.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index e86d8e99e3..a94c674042 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+1999-10-27 Ian Lance Taylor <ian@zembu.com>
+
+ * stabs.c (_bfd_link_section_stabs): Make sure .stabstr section
+ starts with a zero.
+
Sat Oct 23 17:36:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
* archures.c: Add definitions bfd_mach_d10v, bfd_mach_d10v_ts2 and
diff --git a/bfd/stabs.c b/bfd/stabs.c
index ea4da8fccc..e9ac167628 100644
--- a/bfd/stabs.c
+++ b/bfd/stabs.c
@@ -230,6 +230,8 @@ _bfd_link_section_stabs (abfd, psinfo, stabsec, stabstrsec, psecinfo)
sinfo->strings = _bfd_stringtab_init ();
if (sinfo->strings == NULL)
goto error_return;
+ /* Make sure the first byte is zero. */
+ (void) _bfd_stringtab_add (sinfo->strings, "", true, true);
if (! bfd_hash_table_init_n (&sinfo->includes.root,
stab_link_includes_newfunc,
251))