mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
* archive.cc (Library_base::should_include_member): Pull in object
from archive if it defines the entry symbol. * parameters.cc (Parameters::entry): New function. * parameters.h (class Parameters): Declare entry. * output.h (class Output_file_header): Remove entry_ field. * output.cc (Output_file_header::Output_file_header): Remove entry parameter. Change all callers. (Output_file_header::entry): Use parameters->entry. * gold.cc (queue_middle_tasks): Likewise. * plugin.cc (Plugin_hook::run): Likewise.
This commit is contained in:
@@ -211,6 +211,20 @@ Parameters::check_target_endianness()
|
||||
}
|
||||
}
|
||||
|
||||
// Return the name of the entry symbol.
|
||||
|
||||
const char*
|
||||
Parameters::entry() const
|
||||
{
|
||||
const char* ret = this->options().entry();
|
||||
if (ret == NULL)
|
||||
{
|
||||
// FIXME: Need to support target specific entry symbol.
|
||||
ret = "_start";
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
// Set the incremental linking mode to INCREMENTAL_FULL. Used when
|
||||
// the linker determines that an incremental update is not possible.
|
||||
// Returns false if the incremental mode was INCREMENTAL_UPDATE,
|
||||
|
||||
Reference in New Issue
Block a user