diff options
author | Ian Lance Taylor <iant@google.com> | 2007-11-14 16:53:25 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-11-14 16:53:25 +0000 |
commit | 9a2d69841557c502021be98221a796ebe253fa09 (patch) | |
tree | 0b92ca469f9782810c95cbbc2e2aa5e80273c669 /gold/target.h | |
parent | 3e6fe5ae738660d48c8b6a3e0206cbd2d23fa1c5 (diff) | |
download | gdb-9a2d69841557c502021be98221a796ebe253fa09.zip gdb-9a2d69841557c502021be98221a796ebe253fa09.tar.gz gdb-9a2d69841557c502021be98221a796ebe253fa09.tar.bz2 |
Add heuristics for undefined symbol warnings.
Diffstat (limited to 'gold/target.h')
-rw-r--r-- | gold/target.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gold/target.h b/gold/target.h index 8ecc078..e385c55 100644 --- a/gold/target.h +++ b/gold/target.h @@ -137,6 +137,12 @@ class Target code_fill(off_t length) { return this->do_code_fill(length); } + // Return whether SYM is known to be defined by the ABI. This is + // used to avoid inappropriate warnings about undefined symbols. + bool + is_defined_by_abi(Symbol* sym) const + { return this->do_is_defined_by_abi(sym); } + protected: // This struct holds the constant information for a child class. We // use a struct to avoid the overhead of virtual function calls for @@ -188,6 +194,11 @@ class Target do_code_fill(off_t) { gold_unreachable(); } + // Virtual function which may be implemented by the child class. + virtual bool + do_is_defined_by_abi(Symbol*) const + { return false; } + private: Target(const Target&); Target& operator=(const Target&); |