aboutsummaryrefslogtreecommitdiff
path: root/gold/symtab.h
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/symtab.h
parent3e6fe5ae738660d48c8b6a3e0206cbd2d23fa1c5 (diff)
downloadgdb-9a2d69841557c502021be98221a796ebe253fa09.zip
gdb-9a2d69841557c502021be98221a796ebe253fa09.tar.gz
gdb-9a2d69841557c502021be98221a796ebe253fa09.tar.bz2
Add heuristics for undefined symbol warnings.
Diffstat (limited to 'gold/symtab.h')
-rw-r--r--gold/symtab.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/gold/symtab.h b/gold/symtab.h
index 367813f..d321122 100644
--- a/gold/symtab.h
+++ b/gold/symtab.h
@@ -46,6 +46,7 @@ class Dynobj;
template<int size, bool big_endian>
class Sized_dynobj;
class Versions;
+class Input_objects;
class Output_data;
class Output_section;
class Output_segment;
@@ -1055,7 +1056,7 @@ class Symbol_table
// Write out the global symbols.
void
- write_globals(const Target*, const Stringpool*, const Stringpool*,
+ write_globals(const Input_objects*, const Stringpool*, const Stringpool*,
Output_file*) const;
// Write out a section symbol. Return the updated offset.
@@ -1177,8 +1178,8 @@ class Symbol_table
// Write globals specialized for size and endianness.
template<int size, bool big_endian>
void
- sized_write_globals(const Target*, const Stringpool*, const Stringpool*,
- Output_file*) const;
+ sized_write_globals(const Input_objects*, const Stringpool*,
+ const Stringpool*, Output_file*) const;
// Write out a symbol to P.
template<int size, bool big_endian>
@@ -1189,6 +1190,10 @@ class Symbol_table
const Stringpool*, unsigned char* p
ACCEPT_SIZE_ENDIAN) const;
+ // Possibly warn about an undefined symbol from a dynamic object.
+ void
+ warn_about_undefined_dynobj_symbol(const Input_objects*, Symbol*) const;
+
// Write out a section symbol, specialized for size and endianness.
template<int size, bool big_endian>
void