aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-02-26 03:11:21 +0000
committerIan Lance Taylor <ian@airs.com>1994-02-26 03:11:21 +0000
commitfc1dfb7169128d15419b1958e72c626a62bfb592 (patch)
tree3ca7791841509027885d93ac16e76f3ff9b015b8 /ld/ldlang.c
parentff33a8c1675bbeba659f1d3a833f09dfe5365598 (diff)
downloadgdb-fc1dfb7169128d15419b1958e72c626a62bfb592.zip
gdb-fc1dfb7169128d15419b1958e72c626a62bfb592.tar.gz
gdb-fc1dfb7169128d15419b1958e72c626a62bfb592.tar.bz2
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.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index d0d3663..468898c 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