Add --orphan-handling option.
authorCary Coutant <ccoutant@gmail.com>
Tue, 13 Dec 2016 21:01:13 +0000 (13:01 -0800)
committerCary Coutant <ccoutant@gmail.com>
Tue, 13 Dec 2016 21:01:26 +0000 (13:01 -0800)
commit591be3e4a841ac56bb3ee094447b708d58a6d4b8
tree9ef4c58b0530d20a799cb095554656a2cad35c6a
parent03fb64f837bd8466ba6e7b7cb8880f5c6c87daab
Add --orphan-handling option.

gold/
PR gold/20749
* options.h (--orphan-handling): New option.
(General_options::Orphan_handling): New enum.
(General_options::orphan_handling_enum): New method.
(General_options::set_orphan_handling_enum): New method.
(General_options::orphan_handling_enum_): New data member.
* options.cc (General_options::General_options): Initialize new member.
(General_options::finalize): Convert --orphan-handling argument to enum.
* script-sections.cc (Script_sections::output_section_name): Check it.
gold/ChangeLog
gold/options.cc
gold/options.h
gold/script-sections.cc