aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-09-19 20:44:15 +0000
committerIan Lance Taylor <iant@google.com>2007-09-19 20:44:15 +0000
commitbc56b3fb3a77b7d1992c44cd97a080b847c43c73 (patch)
tree8e2a1d9499b26c122840655a899ff0d21a2094c8
parente055a93133858ef65858efd331a9c12b6d71e39b (diff)
downloadgdb-bc56b3fb3a77b7d1992c44cd97a080b847c43c73.zip
gdb-bc56b3fb3a77b7d1992c44cd97a080b847c43c73.tar.gz
gdb-bc56b3fb3a77b7d1992c44cd97a080b847c43c73.tar.bz2
Note that a Stringpool keeps a copy of a string.
-rw-r--r--gold/stringpool.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gold/stringpool.h b/gold/stringpool.h
index b49abd1..cdd36e7 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