From de08b0b153eab06bdc93d5de7705ebd1a081972f Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 24 Jan 1994 19:55:02 +0000 Subject: [PATCH] * ldlang.c (lookup_name): Set BFD GP size to -G argument value after opening BFD. --- ld/ChangeLog | 3 +++ ld/ldlang.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ld/ChangeLog b/ld/ChangeLog index c4f9fd92b9e..5cd1d1712ad 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -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. diff --git a/ld/ldlang.c b/ld/ldlang.c index 71a03888486..aacff4b7041 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -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); -- 2.30.2