X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gold%2Freloc.cc;h=d50674f6d77159349b2f6c23038d80cd137802f8;hb=c79126688f8211ab17a893c5e80b09811d424fc1;hp=ab74498d244f2d6e3198cecb61c1fc70ad8c9e80;hpb=06d063c072d0e247751535bc5e394aa7b8be3b0f;p=deliverable%2Fbinutils-gdb.git diff --git a/gold/reloc.cc b/gold/reloc.cc index ab74498d24..d50674f6d7 100644 --- a/gold/reloc.cc +++ b/gold/reloc.cc @@ -63,6 +63,14 @@ Read_relocs::run(Workqueue* workqueue) this->symtab_lock_, this->blocker_)); } +// Return a debugging name for the task. + +std::string +Read_relocs::get_name() const +{ + return "Read_relocs " + this->object_->name(); +} + // Scan_relocs methods. // These tasks scan the relocations read by Read_relocs and mark up @@ -114,6 +122,14 @@ Scan_relocs::run(Workqueue*) this->rd_ = NULL; } +// Return a debugging name for the task. + +std::string +Scan_relocs::get_name() const +{ + return "Scan_relocs " + this->object_->name(); +} + // Relocate_task methods. // We may have to wait for the output sections to be written. @@ -125,6 +141,9 @@ Relocate_task::is_runnable(Workqueue*) && this->output_sections_blocker_->is_blocked()) return IS_BLOCKED; + if (this->object_->is_locked()) + return IS_LOCKED; + return IS_RUNNABLE; } @@ -166,6 +185,14 @@ Relocate_task::run(Workqueue*) this->of_); } +// Return a debugging name for the task. + +std::string +Relocate_task::get_name() const +{ + return "Relocate_task " + this->object_->name(); +} + // Read the relocs and local symbols from the object file and store // the information in RD.