Fri Feb 25 18:55:54 1994 Ted Lemon (mellon@pepper.ncd.com)
authorIan Lance Taylor <ian@airs.com>
Sat, 26 Feb 1994 03:11:21 +0000 (03:11 +0000)
committerIan Lance Taylor <ian@airs.com>
Sat, 26 Feb 1994 03:11:21 +0000 (03:11 +0000)
* ldlang.c (lookup_name): don't call bfd_set_gp_size.
(ldlang_add_file): call it here instead.

ld/ChangeLog
ld/ldlang.c

index 901ad4bb5ddb2c2539457f3da76100773041a39e..62a4c0b4835125d9b1a7680339bfc3fe3152995c 100644 (file)
@@ -1,3 +1,8 @@
+Fri Feb 25 18:55:54 1994  Ted Lemon  (mellon@pepper.ncd.com)
+
+       * ldlang.c (lookup_name): don't call bfd_set_gp_size.
+       (ldlang_add_file): call it here instead.
+
 Fri Feb 25 18:13:46 1994  David J. Mackenzie  (djm@rtl.cygnus.com)
 
        * ldgram.y: Include ldlex.h after %token decls, for byacc.
index d0d36634193bf2a28ccc9ef14d053e0b171a7f07..468898c02bb5487e6ec9d8f2a1d73967a93cc95f 100644 (file)
@@ -796,8 +796,6 @@ lookup_name (name, force_load)
   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);
 
@@ -2318,6 +2316,7 @@ ldlang_add_file (entry)
     ;
   *pp = entry->the_bfd;
   entry->the_bfd->usrdata = (PTR) entry;
+  bfd_set_gp_size (entry->the_bfd, g_switch_value);
 }
 
 void