diff options
author | Cary Coutant <ccoutant@gmail.com> | 2015-12-11 14:01:22 -0800 |
---|---|---|
committer | Cary Coutant <ccoutant@gmail.com> | 2015-12-11 14:23:58 -0800 |
commit | 6b2353a53a621680dc839366f4b2b4f96eccb6da (patch) | |
tree | a28e925b00e104787ffcb6d2945ac8076fb72020 /gold/object.cc | |
parent | f1637ebed142eabd96cbc009edda8ec903c71fd6 (diff) | |
download | gdb-6b2353a53a621680dc839366f4b2b4f96eccb6da.zip gdb-6b2353a53a621680dc839366f4b2b4f96eccb6da.tar.gz gdb-6b2353a53a621680dc839366f4b2b4f96eccb6da.tar.bz2 |
Make output views accessible to Target during do_relocate().
gold/
* object.cc (Sized_relobj_file::Sized_relobj_file): Initialize
output_views_.
* object.h (Object::get_output_view): New function.
(Object::do_get_output_view): New function.
(Sized_relobj_file::do_get_output_view): New function.
(Sized_relobj_file::output_views_): New data member.
* reloc.cc: (Sized_relobj_file::do_relocate): Store pointer to
output views in class object.
(Sized_relobj_file::do_get_output_view): New function.
Diffstat (limited to 'gold/object.cc')
-rw-r--r-- | gold/object.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/object.cc b/gold/object.cc index 54b76bd..c1947bc 100644 --- a/gold/object.cc +++ b/gold/object.cc @@ -479,7 +479,8 @@ Sized_relobj_file<size, big_endian>::Sized_relobj_file( discarded_eh_frame_shndx_(-1U), is_deferred_layout_(false), deferred_layout_(), - deferred_layout_relocs_() + deferred_layout_relocs_(), + output_views_(NULL) { this->e_type_ = ehdr.get_e_type(); } |