[GOLD] powerpc incremental-dump assertion failure
authorAlan Modra <amodra@gmail.com>
Tue, 17 Nov 2020 04:43:37 +0000 (15:13 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 17 Nov 2020 10:29:53 +0000 (20:59 +1030)
commit4e0e019fa8eda9b7ffe0615133f55e9b0b882fa1
treefc4e8c4ea667e696c8b9630c354ab2b284529be5
parentf1e05b19786669d29d59f48f26bc06ad67c221e2
[GOLD] powerpc incremental-dump assertion failure

incremental-dump wants to instantiate Target_powerpc without options
being set up.  This patch fixes
  internal error in options, at gold/parameters.h:92

* powerpc.cc (Target_powerpc::no_tprel_opt_): Rename from tprel_opt_.
Init to false.
(Target_powerpc::tprel_opt): Test parameters->options().tls_optimize().
(Target_powerpc::set_tprel_opt): Delete.
(Target_powerpc::set_no_tprel_opt): New function.  Update all uses
of set_tprel_opt.
gold/ChangeLog
gold/powerpc.cc