]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gold/gold.cc
Support assignments and expressions in linker scripts.
[thirdparty/binutils-gdb.git] / gold / gold.cc
index b30087173a18e6a47a2c6a1920a3b8b69e98a309..d1e544afdf3f194a31dff54e40454a0c9c6c5412 100644 (file)
@@ -1,6 +1,6 @@
 // gold.cc -- main linker functions
 
-// Copyright 2006, 2007 Free Software Foundation, Inc.
+// Copyright 2006, 2007, 2008 Free Software Foundation, Inc.
 // Written by Ian Lance Taylor <iant@google.com>.
 
 // This file is part of gold.
@@ -202,6 +202,9 @@ queue_middle_tasks(const General_options& options,
   // appropriate.
   layout->define_section_symbols(symtab, input_objects->target());
 
+  // Define symbols from any linker scripts.
+  layout->define_script_symbols(symtab, input_objects->target());
+
   // Read the relocations of the input files.  We do this to find
   // which symbols are used by relocations which require a GOT and/or
   // a PLT entry, or a COPY reloc.  When we implement garbage