diff options
author | Ian Lance Taylor <iant@google.com> | 2006-09-29 19:58:17 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2006-09-29 19:58:17 +0000 |
commit | 61ba1cf93601b0a0877a8ade94ba3c674a09f77e (patch) | |
tree | ffa744ec1dffd7f2dae13150b1dd7784728ed0a4 /gold/reloc.h | |
parent | 4dba4b2419ccdbf48fd016edb7e0e10016897827 (diff) | |
download | gdb-61ba1cf93601b0a0877a8ade94ba3c674a09f77e.zip gdb-61ba1cf93601b0a0877a8ade94ba3c674a09f77e.tar.gz gdb-61ba1cf93601b0a0877a8ade94ba3c674a09f77e.tar.bz2 |
Snapshot. Now able to produce a minimal executable which actually
runs.
Diffstat (limited to 'gold/reloc.h')
-rw-r--r-- | gold/reloc.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/gold/reloc.h b/gold/reloc.h new file mode 100644 index 0000000..287bb79 --- /dev/null +++ b/gold/reloc.h @@ -0,0 +1,45 @@ +// reloc.h -- relocate input files for gold -*- C++ -*- + +#ifndef GOLD_RELOC_H +#define GOLD_RELOC_H + +#include "workqueue.h" + +namespace gold +{ + +class Relocate_task : public Task +{ + public: + Relocate_task(const General_options& options, const Symbol_table* symtab, + const Stringpool* sympool, Object* object, Output_file* of, + Task_token* final_blocker) + : options_(options), symtab_(symtab), sympool_(sympool), object_(object), + of_(of), final_blocker_(final_blocker) + { } + + // The standard Task methods. + + Is_runnable_type + is_runnable(Workqueue*); + + Task_locker* + locks(Workqueue*); + + void + run(Workqueue*); + + private: + class Relocate_locker; + + const General_options& options_; + const Symbol_table* symtab_; + const Stringpool* sympool_; + Object* object_; + Output_file* of_; + Task_token* final_blocker_; +}; + +} // End namespace gold. + +#endif // !defined(GOLD_RELOC_H) |