* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
authorMaciej W. Rozycki <macro@linux-mips.org>
Fri, 3 May 2013 15:01:19 +0000 (15:01 +0000)
committerMaciej W. Rozycki <macro@linux-mips.org>
Fri, 3 May 2013 15:01:19 +0000 (15:01 +0000)
Only call lang_for_each_statement if an ELF hash table is used.

ld/ChangeLog
ld/emultempl/elf32.em

index 5bb24f966d45e1051b7e18d2fe50ba8fcf44b09f..7175c98343945950e0dbcce5207d9f1e0dec498e 100644 (file)
@@ -1,3 +1,8 @@
+2013-05-03  Alan Modra  <amodra@gmail.com>
+
+       * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
+       Only call lang_for_each_statement if an ELF hash table is used.
+
 2013-05-02  Nick Clifton  <nickc@redhat.com>
 
        * Makefile.am: Add emsp430X.c
index dae86052ad46d36bc6ca1d015898d347ccea344c..251c5110823147e9b121c8c5b168aca6b65bb5aa 100644 (file)
@@ -1484,12 +1484,14 @@ gld${EMULATION_NAME}_before_allocation (void)
   bfd *abfd;
 
   if (is_elf_hash_table (link_info.hash))
-    _bfd_elf_tls_setup (link_info.output_bfd, &link_info);
+    {
+      _bfd_elf_tls_setup (link_info.output_bfd, &link_info);
 
-  /* If we are going to make any variable assignments, we need to let
-     the ELF backend know about them in case the variables are
-     referred to by dynamic objects.  */
-  lang_for_each_statement (gld${EMULATION_NAME}_find_statement_assignment);
+      /* If we are going to make any variable assignments, we need to
+        let the ELF backend know about them in case the variables are
+        referred to by dynamic objects.  */
+      lang_for_each_statement (gld${EMULATION_NAME}_find_statement_assignment);
+    }
 
   /* Let the ELF backend work out the sizes of any sections required
      by dynamic linking.  */
This page took 0.039596 seconds and 4 git commands to generate.