summaryrefslogtreecommitdiff
path: root/gold/symtab.h
diff options
context:
space:
mode:
authorSriraman Tallam <tmsriram@google.com>2011-10-31 21:36:54 +0000
committerSriraman Tallam <tmsriram@google.com>2011-10-31 21:36:54 +0000
commit7257cc92acfa8a53a200d9efa69913d3292c480f (patch)
tree59ac76e318310c04d83ca98b1f0a9a69b4994e80 /gold/symtab.h
parentb9fd179153353a88a34dd97a03ee698376212d29 (diff)
downloadbinutils-gdb-7257cc92acfa8a53a200d9efa69913d3292c480f.tar.gz
2011-10-31 Sriraman Tallam <tmsriram@google.com>
* symtab.h (Symbol_table::gc_mark_symbol_for_shlib): Rename to gc_mark_symbol. * symtab.cc (Symbol_table::gc_mark_symbol_for_shlib): Rename to gc_mark_symbol. Change to just keep the section associated with symbol. (Symbol_table::add_from_relobj): Mark symbols as not garbage when they are externally visible and --export-dynamic is turned on. (Symbol_table::gc_mark_dyn_syms): Call gc_mark_symbol.
Diffstat (limited to 'gold/symtab.h')
-rw-r--r--gold/symtab.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/gold/symtab.h b/gold/symtab.h
index 4707e124837..feed2458103 100644
--- a/gold/symtab.h
+++ b/gold/symtab.h
@@ -1313,10 +1313,9 @@ class Symbol_table
void
gc_mark_undef_symbols(Layout*);
- // During garbage collection, this ensures externally visible symbols
- // are not treated as garbage while building shared objects.
+ // This tells garbage collection that this symbol is referenced.
void
- gc_mark_symbol_for_shlib(Symbol* sym);
+ gc_mark_symbol(Symbol* sym);
// During garbage collection, this keeps sections that correspond to
// symbols seen in dynamic objects.