From 4a828aab99fb02f80d97ebf005eb3daf933a37a3 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 10 Apr 2007 18:00:26 +0000 Subject: bfd/ * elf64-alpha.c (struct alpha_elf_link_hash_table): Add relax_trip. (elf64_alpha_size_got_sections): Remove unused something_changed local. (elf64_alpha_size_plt_section): Return void. (elf64_alpha_size_rela_got_section): Likewise. (elf64_alpha_relax_section): Only regenerate got+plt if the relax_trip counter has changed. include/ * bfdlink.h (struct bfd_link_info): Add relax_trip. ld/ * ldlang.c (relax_sections): Initialize and increment link_info.relax_trip. --- ld/ldlang.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ld/ldlang.c') diff --git a/ld/ldlang.c b/ld/ldlang.c index 7731bfb..cf1a697 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -5664,9 +5664,11 @@ relax_sections (void) /* Keep relaxing until bfd_relax_section gives up. */ bfd_boolean relax_again; + link_info.relax_trip = -1; do { relax_again = FALSE; + link_info.relax_trip++; /* Note: pe-dll.c does something like this also. If you find you need to change this code, you probably need to change -- cgit v1.1