projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[ARC] Add SYNTAX_NOP and SYNTAX_1OP for extension instructions
[deliverable/binutils-gdb.git]
/
gold
/
parameters.cc
diff --git
a/gold/parameters.cc
b/gold/parameters.cc
index dbda690d16c2a59f6da319e20fb71af9be48279c..11b5b3128ff927d26f53ffbd9fcef8ccbbb953f8 100644
(file)
--- a/
gold/parameters.cc
+++ b/
gold/parameters.cc
@@
-1,6
+1,6
@@
// parameters.cc -- general parameters for a link using gold
// parameters.cc -- general parameters for a link using gold
-// Copyright (C) 2006-201
5
Free Software Foundation, Inc.
+// Copyright (C) 2006-201
6
Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
@@
-125,6
+125,7
@@
Parameters::set_target_once(Target* target)
{
gold_assert(this->target_ == NULL);
this->target_ = target;
{
gold_assert(this->target_ == NULL);
this->target_ = target;
+ target->select_as_default_target();
if (this->options_valid())
{
this->check_target_endianness();
if (this->options_valid())
{
this->check_target_endianness();
@@
-236,7
+237,7
@@
const char*
Parameters::entry() const
{
const char* ret = this->options().entry();
Parameters::entry() const
{
const char* ret = this->options().entry();
- if (ret == NULL)
+ if (ret == NULL
&& parameters->target_valid()
)
ret = parameters->target().entry_symbol_name();
return ret;
}
ret = parameters->target().entry_symbol_name();
return ret;
}
@@
-297,7
+298,6
@@
void
set_parameters_target(Target* target)
{
static_parameters.set_target(target);
set_parameters_target(Target* target)
{
static_parameters.set_target(target);
- target->select_as_default_target();
}
void
}
void
This page took
0.023598 seconds
and
4
git commands to generate.