missed from 2006-10-19 commit.
authorAlan Modra <amodra@gmail.com>
Mon, 23 Oct 2006 03:07:49 +0000 (03:07 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 23 Oct 2006 03:07:49 +0000 (03:07 +0000)
ld/emultempl/armelf.em

index 17fc522..f78b495 100644 (file)
@@ -123,9 +123,6 @@ arm_elf_before_allocation (void)
     }
   /* We should be able to set the size of the interworking stub section.  */
 
-  /* Call the standard elf routine.  */
-  gld${EMULATION_NAME}_before_allocation ();
-
   /* Here we rummage through the found bfds to collect glue information.  */
   /* FIXME: should this be based on a command line option? krk@cygnus.com  */
   {
@@ -140,6 +137,9 @@ arm_elf_before_allocation (void)
       }
   }
 
+  /* Call the standard elf routine.  */
+  gld${EMULATION_NAME}_before_allocation ();
+
   /* We have seen it all. Allocate it, and carry on.  */
   bfd_elf32_arm_allocate_interworking_sections (& link_info);
 }