aboutsummaryrefslogtreecommitdiff
path: root/gold/parameters.cc
diff options
context:
space:
mode:
authorDoug Kwan <dougkwan@google.com>2010-02-03 05:36:55 +0000
committerDoug Kwan <dougkwan@google.com>2010-02-03 05:36:55 +0000
commit0d31c79dad789b6e82620d842e8ba8c5d71cde88 (patch)
tree53745aa4173679af2ce2b93044a30dfa9cd45ad7 /gold/parameters.cc
parentaf06b00b54e4670606c7b77bc3c2bfd807b7f0a7 (diff)
downloadgdb-0d31c79dad789b6e82620d842e8ba8c5d71cde88.zip
gdb-0d31c79dad789b6e82620d842e8ba8c5d71cde88.tar.gz
gdb-0d31c79dad789b6e82620d842e8ba8c5d71cde88.tar.bz2
2010-02-02 Doug Kwan <dougkwan@google.com>
* Makefile.am (HFILES): Add arm-reloc-property.h. (DEFFILES): New. (TARGETSOURCES): Add arm-reloc-property.cc (ALL_TARGETOBJS): Add arm-reloc-property.$(OBJEXT) (libgold_a_SOURCES): $(DEFFILES) * Makefile.in: Regenerate. * arm-reloc-property.cc: New file. * arm-reloc-property.h: New file. * arm-reloc.def: New file. * arm.cc: Update comments. (arm-reloc-property.h): New included header. (arm_reloc_property_table): New global variable. (Target_arm::do_select_as_default_target): New method definition. * configure.tgt (armeb*-*-*,armbe*-*-*,arm*-*-*): Add arm-reloc-property to targ_extra_obj. * parameters.cc (set_parameters_target): Call Target::select_as_default_target(). * target.h (Target::select_as_default_target): New method definition. (Target::do_select_as_default_target): Same.
Diffstat (limited to 'gold/parameters.cc')
-rw-r--r--gold/parameters.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/gold/parameters.cc b/gold/parameters.cc
index 2a53998..9cf7808 100644
--- a/gold/parameters.cc
+++ b/gold/parameters.cc
@@ -141,7 +141,10 @@ set_parameters_options(const General_options* options)
void
set_parameters_target(Target* target)
-{ static_parameters.set_target(target); }
+{
+ static_parameters.set_target(target);
+ target->select_as_default_target();
+}
void
set_parameters_doing_static_link(bool doing_static_link)