aboutsummaryrefslogtreecommitdiff
path: root/gold/target.h
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2013-07-30 21:26:53 +0000
committerCary Coutant <ccoutant@google.com>2013-07-30 21:26:53 +0000
commita67858e0463977eb1e9aa65ccc55deab011335d5 (patch)
tree1c45473982f82097c04a2728b7a53414d19b96f2 /gold/target.h
parent11b4b7cc1fdcc85aeeb79d7bb1cac64542404cd5 (diff)
downloadgdb-a67858e0463977eb1e9aa65ccc55deab011335d5.zip
gdb-a67858e0463977eb1e9aa65ccc55deab011335d5.tar.gz
gdb-a67858e0463977eb1e9aa65ccc55deab011335d5.tar.bz2
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.
Diffstat (limited to 'gold/target.h')
-rw-r--r--gold/target.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gold/target.h b/gold/target.h
index 6523c04..4c58d10 100644
--- a/gold/target.h
+++ b/gold/target.h
@@ -449,6 +449,11 @@ class Target
gc_mark_symbol(Symbol_table* symtab, Symbol* sym) const
{ this->do_gc_mark_symbol(symtab, sym); }
+ // Return the name of the entry point symbol.
+ const char*
+ entry_symbol_name() const
+ { return this->pti_->entry_symbol_name; }
+
protected:
// This struct holds the constant information for a child class. We
// use a struct to avoid the overhead of virtual function calls for
@@ -502,6 +507,8 @@ class Target
const char* attributes_section;
// Vendor name of vendor attributes.
const char* attributes_vendor;
+ // Name of the main entry point to the program.
+ const char* entry_symbol_name;
};
Target(const Target_info* pti)