aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2007-04-10 18:00:26 +0000
committerRichard Henderson <rth@redhat.com>2007-04-10 18:00:26 +0000
commit4a828aab99fb02f80d97ebf005eb3daf933a37a3 (patch)
treeff1af32241e40480fd52822c3bee44185264d9e5 /ld
parenta489f7899482002eac7956dfcd923dc0688b6ac0 (diff)
downloadgdb-4a828aab99fb02f80d97ebf005eb3daf933a37a3.zip
gdb-4a828aab99fb02f80d97ebf005eb3daf933a37a3.tar.gz
gdb-4a828aab99fb02f80d97ebf005eb3daf933a37a3.tar.bz2
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.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/ldlang.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index a838c14..e38237f 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2007-04-10 Richard Henderson <rth@redhat.com>
+
+ * ldlang.c (relax_sections): Initialize and increment
+ link_info.relax_trip.
+
2007-04-04 Paul Brook <paul@codesourcery.com>
* configure.tgt: Loosen checks for arm uclinux eabi targets.
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