Note that a Stringpool keeps a copy of a string.
authorIan Lance Taylor <iant@google.com>
Wed, 19 Sep 2007 20:44:15 +0000 (20:44 +0000)
committerIan Lance Taylor <iant@google.com>
Wed, 19 Sep 2007 20:44:15 +0000 (20:44 +0000)
gold/stringpool.h

index b49abd1f2a1a5f36861367e9a0d23e96bee998f7..cdd36e7b9ddaa9b30d58f7db0fc09726659cf926 100644 (file)
@@ -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
This page took 0.024993 seconds and 4 git commands to generate.