Don't pass around the target in order to define symbols; get it from

the parameters instead.
This commit is contained in:
Ian Lance Taylor
2008-01-26 01:17:45 +00:00
parent 8f0a6da7a9
commit 9b07f471e3
13 changed files with 98 additions and 109 deletions

View File

@@ -137,16 +137,16 @@ class Layout
// Create dynamic sections if necessary.
void
create_initial_dynamic_sections(const Input_objects*, Symbol_table*);
create_initial_dynamic_sections(Symbol_table*);
// Define __start and __stop symbols for output sections.
void
define_section_symbols(Symbol_table*, const Target*);
define_section_symbols(Symbol_table*);
// Define symbols from any linker script.
void
define_script_symbols(Symbol_table* symtab, const Target* target)
{ this->script_options_->add_symbols_to_table(symtab, target); }
define_script_symbols(Symbol_table* symtab)
{ this->script_options_->add_symbols_to_table(symtab); }
// Return the Stringpool used for symbol names.
const Stringpool*
@@ -319,8 +319,8 @@ class Layout
// Create the dynamic symbol table.
void
create_dynamic_symtab(const Input_objects*, const Target*,
Symbol_table*, Output_section** pdynstr,
create_dynamic_symtab(const Input_objects*, Symbol_table*,
Output_section** pdynstr,
unsigned int* plocal_dynamic_count,
std::vector<Symbol*>* pdynamic_symbols,
Versions* versions);