Note that a Stringpool keeps a copy of a string.

This commit is contained in:
Ian Lance Taylor 2007-09-19 20:44:15 +00:00
parent e055a93133
commit bc56b3fb3a
1 changed files with 3 additions and 0 deletions

View 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