summaryrefslogtreecommitdiff
path: root/gold/x86_64.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-11-14 16:53:25 +0000
committerIan Lance Taylor <iant@google.com>2007-11-14 16:53:25 +0000
commit9a2d69841557c502021be98221a796ebe253fa09 (patch)
tree0b92ca469f9782810c95cbbc2e2aa5e80273c669 /gold/x86_64.cc
parent3e6fe5ae738660d48c8b6a3e0206cbd2d23fa1c5 (diff)
downloadbinutils-gdb-9a2d69841557c502021be98221a796ebe253fa09.tar.gz
Add heuristics for undefined symbol warnings.
Diffstat (limited to 'gold/x86_64.cc')
-rw-r--r--gold/x86_64.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/x86_64.cc b/gold/x86_64.cc
index 0614e89c606..349d8c1407f 100644
--- a/gold/x86_64.cc
+++ b/gold/x86_64.cc
@@ -113,6 +113,11 @@ class Target_x86_64 : public Sized_target<64, false>
std::string
do_code_fill(off_t length);
+ // Return whether SYM is defined by the ABI.
+ bool
+ do_is_defined_by_abi(Symbol* sym) const
+ { return strcmp(sym->name(), "__tls_get_addr") == 0; }
+
// Return the size of the GOT section.
off_t
got_size()