From 9a2d69841557c502021be98221a796ebe253fa09 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 14 Nov 2007 16:53:25 +0000 Subject: Add heuristics for undefined symbol warnings. --- gold/symtab.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'gold/symtab.h') 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 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 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 @@ -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 void -- cgit v1.1