OSDN Git Service

2009-08-18 Doug Kwan <dougkwan@google.com>
authordougkwan <dougkwan>
Tue, 18 Aug 2009 23:49:29 +0000 (23:49 +0000)
committerdougkwan <dougkwan>
Tue, 18 Aug 2009 23:49:29 +0000 (23:49 +0000)
commitac79672d660042be8b9312444c498db189e2d156
treec252a3fc3de8037c8b7509ffb735e81b0ac4f5ba
parentdd1497984fea4cac2565c9fb60cb2143ef594af3
2009-08-18  Doug Kwan  <dougkwan@google.com>

* dynobj.cc (Sized_dynobj::setup): Take a Target object instead of
an elcpp::Ehdr as parameter.  Adjust call to set_target.
* dynobj.h (Sized_dynobj::setup): Take a Target object instead of
an elfcpp::Ehdr as parameter.
* object.cc (Object::set_target): Remove the version that looks up
a target and sets it.
(Sized_relobj::setup): Take a Target object instead of
an elfcpp::Ehdr as parameter.  Adjust call to set_target.
(make_elf_sized_object): Find target and ask target to
make an ELF object.
* object.h: (Object::set_target): Remove the version that looks up
a target and sets it.
(Sized_relobj::setup): Take a Target object instead of
an elfcpp:Ehdr as parameter.
* target.cc: Include dynobj.h.
(Target::do_make_elf_object_implementation): New.
  (Target::do_make_elf_object): New.
* target.h (Target::make_elf_object): New template declaration.
(Target::do_make_elf_object): New method declarations.
(Target::do_make_elf_object_implementation): New template declaration.
gold/ChangeLog
gold/dynobj.cc
gold/dynobj.h
gold/object.cc
gold/object.h
gold/target.cc
gold/target.h