* object.cc (Sized_relobj::do_count): Test should_retain_symbol map.
authorCraig Silverstein <csilvers@google.com>
Fri, 18 Sep 2009 20:03:22 +0000 (20:03 +0000)
committerCraig Silverstein <csilvers@google.com>
Fri, 18 Sep 2009 20:03:22 +0000 (20:03 +0000)
commit8c60465154ed694fac2531f65e7ca1ae51093174
tree5b1e1c166e0d5f50c40988974cf4a87e9dfcb216
parentf43030c448dc1938d6fc7a6072f1a76853b1b70d
* object.cc (Sized_relobj::do_count): Test should_retain_symbol map.
* options.cc: Include <cerrno> and <fstream>.
(General_options::finalize): Parse -retain-symbols-file tag.
* options.h: New flag.
(General_options): New method should_retain_symbol, new
variable symbols_to_retain.
* symtab.cc (Symbol_table::sized_finalize_symbol): Test
should_retain_symbol map.
* testsuite/Makefile.am (retain_symbols_file_test): New test.
* testsuite/Makefile.in: Regenerate.
* testsuite/retain_symbols_file_test.sh: New file.
gold/ChangeLog
gold/object.cc
gold/options.cc
gold/options.h
gold/symtab.cc
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/retain_symbols_file_test.sh [new file with mode: 0755]