X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gold%2Fparameters.h;h=da35d8473dfcbdc9a3368a28c5131e165305f5fd;hb=f5a0f5b503c43ed3e146bc0d3eca37784892b47e;hp=09b0516b782576edc745773a6a2c91ac1784da49;hpb=9fbd3822ad34dced1ec88410f3f1b447d30e6435;p=binutils-gdb.git diff --git a/gold/parameters.h b/gold/parameters.h index 09b0516b782..da35d8473df 100644 --- a/gold/parameters.h +++ b/gold/parameters.h @@ -1,6 +1,6 @@ // parameters.h -- general parameters for a link using gold -*- C++ -*- -// Copyright 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. +// Copyright (C) 2006-2022 Free Software Foundation, Inc. // Written by Ian Lance Taylor . // This file is part of gold. @@ -28,6 +28,7 @@ namespace gold class General_options; class Errors; +class Timer; class Target; template class Sized_target; @@ -56,6 +57,9 @@ class Parameters void set_errors(Errors* errors); + void + set_timer(Timer* timer); + void set_options(const General_options* options); @@ -70,6 +74,11 @@ class Parameters errors() const { return this->errors_; } + // Return the timer object. + Timer* + timer() const + { return this->timer_; } + // Whether the options are valid. This should not normally be // called, but it is needed by gold_exit. bool @@ -174,9 +183,13 @@ class Parameters void check_target_endianness(); + void + check_rodata_segment(); + friend class Set_parameters_target_once; Errors* errors_; + Timer* timer_; const General_options* options_; Target* target_; bool doing_static_link_valid_; @@ -195,6 +208,9 @@ extern const Parameters* parameters; extern void set_parameters_errors(Errors* errors); +extern void +set_parameters_timer(Timer* timer); + extern void set_parameters_options(const General_options* options);