From fc1dfb7169128d15419b1958e72c626a62bfb592 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 26 Feb 1994 03:11:21 +0000 Subject: [PATCH] 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. --- ld/ChangeLog | 5 +++++ ld/ldlang.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 901ad4bb5dd..62a4c0b4835 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -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. diff --git a/ld/ldlang.c b/ld/ldlang.c index d0d36634193..468898c02bb 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -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 -- 2.30.2