* ldlang.c (lookup_name): Set BFD GP size to -G argument value
authorIan Lance Taylor <ian@airs.com>
Mon, 24 Jan 1994 19:55:02 +0000 (19:55 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 24 Jan 1994 19:55:02 +0000 (19:55 +0000)
after opening BFD.

ld/ChangeLog
ld/ldlang.c

index c4f9fd92b9e04303fe1eb00dcdb1284d7b43783f..5cd1d1712ade816491fbc7b23392f6f6f39b1a00 100644 (file)
@@ -1,5 +1,8 @@
 Mon Jan 24 12:56:37 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
 
+       * ldlang.c (lookup_name): Set BFD GP size to -G argument value
+       after opening BFD.
+
        * ldlang.c (relaxing): Removed global variable.
        (lang_size_sections): If the canonical symbols have not already
        been read in, read them in before relaxing.
index 71a03888486d420dd944cfc2f7af9db493dddfb9..aacff4b704105e358fe6514caafe3d7a49a9255b 100644 (file)
@@ -800,6 +800,8 @@ lookup_name (name)
   else
     einfo ("%F%B: file not recognized: %E\n", search->the_bfd);
 
+  bfd_set_gp_size (search->the_bfd, g_switch_value);
+
   if (bfd_link_add_symbols (search->the_bfd, &link_info) == false)
     einfo ("%F%B: could not read symbols: %E\n", search->the_bfd);