OSDN Git Service

* symtab.h (class Symbol_table): Add enum Defined.
authorian <ian>
Tue, 29 Dec 2009 09:31:48 +0000 (09:31 +0000)
committerian <ian>
Tue, 29 Dec 2009 09:31:48 +0000 (09:31 +0000)
commit312c63dcf520e216cea6b00efc9eba920c259d06
tree28aa55f09f295fbdada8ff1745f09b1d9e15e26a
parentaaeee815b5adda60dfce0780dce8fdced486980d
* symtab.h (class Symbol_table): Add enum Defined.
* resolve.cc (Symbol_table::should_override): Add defined
parameter.  Change all callers.  Test whether object is NULL
before calling a method on it.
(Symbol_table::report_resolve_problem): Add defined parameter.
Change all callers.
(Symbol_table::should_override_with_special): Likewise.
* symtab.cc (Symbol_table::define_in_output_data): Add defined
parameter.  Change all callers.
(Symbol_table::do_define_in_output_data): Likewise.
(Symbol_table::define_in_output_segment): Likewise.
(Symbol_table::do_define_in_output_segment): Likewise.
(Symbol_table::define_as_constant): Likewise.
(Symbol_table::do_define_as_constant): Likewise.
* script.h (class Symbol_assignment): Add is_defsym parameter to
constructor; change all callers.
* script.cc (Script_options::add_symbol_assignment): Add is_defsym
parameter.  Change all callers.  Add is_defsym_ field.
(class Parser_closure): Add parsing_defsym parameter to
constructor; change all callers.  Add parsing_defsym accessor
function.  Add parsing_defsym_ field.
14 files changed:
gold/ChangeLog
gold/arm.cc
gold/dynobj.cc
gold/i386.cc
gold/layout.cc
gold/powerpc.cc
gold/resolve.cc
gold/script-sections.cc
gold/script.cc
gold/script.h
gold/sparc.cc
gold/symtab.cc
gold/symtab.h
gold/x86_64.cc