aboutsummaryrefslogtreecommitdiff
path: root/gold/dynobj.h
diff options
context:
space:
mode:
authorDoug Kwan <dougkwan@google.com>2009-08-18 23:49:29 +0000
committerDoug Kwan <dougkwan@google.com>2009-08-18 23:49:29 +0000
commitf733487b048b9822fb648be60633061d610b40f3 (patch)
tree4df42b83ffd58eecbf028b2b8ed33ebb487843b5 /gold/dynobj.h
parent688805f3b82d345b056810e08842224bfea3a879 (diff)
downloadgdb-f733487b048b9822fb648be60633061d610b40f3.zip
gdb-f733487b048b9822fb648be60633061d610b40f3.tar.gz
gdb-f733487b048b9822fb648be60633061d610b40f3.tar.bz2
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.
Diffstat (limited to 'gold/dynobj.h')
-rw-r--r--gold/dynobj.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/dynobj.h b/gold/dynobj.h
index a15e2a4..f6c6538 100644
--- a/gold/dynobj.h
+++ b/gold/dynobj.h
@@ -161,9 +161,9 @@ class Sized_dynobj : public Dynobj
Sized_dynobj(const std::string& name, Input_file* input_file, off_t offset,
const typename elfcpp::Ehdr<size, big_endian>&);
- // Set up the object file based on the ELF header.
+ // Set up the object file based on TARGET.
void
- setup(const typename elfcpp::Ehdr<size, big_endian>&);
+ setup(Target *target);
// Read the symbols.
void