From 77e655378d930883fad3bb9d08e296b585345360 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 9 Feb 2008 01:22:17 +0000 Subject: Track sections for expressions. --- gold/symtab.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'gold/symtab.h') diff --git a/gold/symtab.h b/gold/symtab.h index 4d25840..b2417f6 100644 --- a/gold/symtab.h +++ b/gold/symtab.h @@ -568,9 +568,16 @@ class Symbol return true; } - // Return whether this symbol currently has an absolute value. - bool - value_is_absolute() const; + // Return the output section where this symbol is defined. Return + // NULL if the symbol has an absolute value. + Output_section* + output_section() const; + + // Set the symbol's output section. This is used for symbols + // defined in scripts. This should only be called after the symbol + // table has been finalized. + void + set_output_section(Output_section*); // Return whether there should be a warning for references to this // symbol. -- cgit v1.1