From a67858e0463977eb1e9aa65ccc55deab011335d5 Mon Sep 17 00:00:00 2001 From: Cary Coutant Date: Tue, 30 Jul 2013 21:26:53 +0000 Subject: gold/ * parameters.cc (Parameters::entry): Return target-specific entry symbol name. * target.h (Target::entry_symbol_name): New function. (Target_info::entry_symbol_name): New data member. * arm.cc (Target_arm::arm_info): Add entry_symbol_name. (Target_arm_nacl::arm_nacl_info): Likewise. * i386.cc (Target_i386::i386_info): Likewise. (Target_i386_nacl::i386_nacl_info): Likewise. * powerpc.cc (Target_powerpc::powerpc_info): Likewise. * sparc.cc (Target_sparc::sparc_info): Likewise. * tilegx.cc (Target_tilegx::tilegx_info): Likewise. * x86_64.cc: (Target_x86_64::x86_64_info) Likewise. (Target_x86_64_nacl::x86_64_nacl_info) Likewise. * testsuite/testfile.cc (Target_test::test_target_info): Likewise. --- gold/parameters.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gold/parameters.cc') diff --git a/gold/parameters.cc b/gold/parameters.cc index 2781990..7410e7f 100644 --- a/gold/parameters.cc +++ b/gold/parameters.cc @@ -238,10 +238,7 @@ Parameters::entry() const { const char* ret = this->options().entry(); if (ret == NULL) - { - // FIXME: Need to support target specific entry symbol. - ret = "_start"; - } + ret = parameters->target().entry_symbol_name(); return ret; } -- cgit v1.1