* stabs.c (_bfd_link_section_stabs): Make sure .stabstr section
authorIan Lance Taylor <ian@airs.com>
Thu, 28 Oct 1999 03:52:01 +0000 (03:52 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 28 Oct 1999 03:52:01 +0000 (03:52 +0000)
starts with a zero.

bfd/ChangeLog
bfd/stabs.c

index e86d8e99e3e07906d8e3cc085983e0dfebd5fd5b..a94c674042906e7913911af705ebf82cfc0b4a83 100644 (file)
@@ -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
index ea4da8fccc961f3c55f858553d0f2f8fd6ea1595..e9ac167628d21a9a6fb4ba957aca0206ad1a6f18 100644 (file)
@@ -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))
This page took 0.03711 seconds and 4 git commands to generate.