* stabs.c (_bfd_link_section_stabs): Make sure .stabstr section

starts with a zero.
This commit is contained in:
Ian Lance Taylor 1999-10-28 03:52:01 +00:00
parent d7498c1ee1
commit 8140b6644d
2 changed files with 7 additions and 0 deletions

View 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

View 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))