From: Ian Lance Taylor Date: Wed, 19 Sep 2007 20:44:15 +0000 (+0000) Subject: Note that a Stringpool keeps a copy of a string. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc56b3fb3a77b7d1992c44cd97a080b847c43c73;p=binutils-gdb.git Note that a Stringpool keeps a copy of a string. --- diff --git a/gold/stringpool.h b/gold/stringpool.h index b49abd1f2a1..cdd36e7b9dd 100644 --- a/gold/stringpool.h +++ b/gold/stringpool.h @@ -27,6 +27,9 @@ class Output_file; // string pointer so that repeated runs of the linker will generate // precisely the same output. +// When you add a string to a Stringpool, Stringpool will make a copy +// of it. Thus there is no need to keep a copy elsewhere. + // A Stringpool can be turned into a string table, a sequential series // of null terminated strings. The first string may optionally be a // single zero byte, as required for SHT_STRTAB sections. This