aboutsummaryrefslogtreecommitdiff
path: root/bfd/stabs.c
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
commit8140b6644d7a8d71e826c9550c2aa84a586f56aa (patch)
tree46003d937f2a58d2b428267201649bc24b378b29 /bfd/stabs.c
parentd7498c1ee197a02c6401584d15b984ae94deaeba (diff)
downloadgdb-8140b6644d7a8d71e826c9550c2aa84a586f56aa.zip
gdb-8140b6644d7a8d71e826c9550c2aa84a586f56aa.tar.gz
gdb-8140b6644d7a8d71e826c9550c2aa84a586f56aa.tar.bz2
* stabs.c (_bfd_link_section_stabs): Make sure .stabstr section
starts with a zero.
Diffstat (limited to 'bfd/stabs.c')
-rw-r--r--bfd/stabs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/stabs.c b/bfd/stabs.c
index ea4da8f..e9ac167 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))