forked from Imagelibrary/binutils-gdb
2010-06-15 Rafael Espindola <espindola@google.com>
* plugin.cc (Plugin_hook::run): Set in_real_elf for the start symbol.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2010-06-15 Rafael Espindola <espindola@google.com>
|
||||||
|
|
||||||
|
* plugin.cc (Plugin_hook::run): Set in_real_elf for the start symbol.
|
||||||
|
|
||||||
2010-06-15 Viktor Kutuzov <vkutuzov@accesssoftek.com>
|
2010-06-15 Viktor Kutuzov <vkutuzov@accesssoftek.com>
|
||||||
|
|
||||||
* fileread.cc: Only #include <sys/uio.h> if HAVE_READV.
|
* fileread.cc: Only #include <sys/uio.h> if HAVE_READV.
|
||||||
|
|||||||
@@ -916,6 +916,14 @@ void
|
|||||||
Plugin_hook::run(Workqueue* workqueue)
|
Plugin_hook::run(Workqueue* workqueue)
|
||||||
{
|
{
|
||||||
gold_assert(this->options_.has_plugins());
|
gold_assert(this->options_.has_plugins());
|
||||||
|
Symbol* start_sym;
|
||||||
|
if (parameters->options().entry())
|
||||||
|
start_sym = this->symtab_->lookup(parameters->options().entry());
|
||||||
|
else
|
||||||
|
start_sym = this->symtab_->lookup("_start");
|
||||||
|
if (start_sym != NULL)
|
||||||
|
start_sym->set_in_real_elf();
|
||||||
|
|
||||||
this->options_.plugins()->all_symbols_read(workqueue,
|
this->options_.plugins()->all_symbols_read(workqueue,
|
||||||
this,
|
this,
|
||||||
this->input_objects_,
|
this->input_objects_,
|
||||||
|
|||||||
Reference in New Issue
Block a user