aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2003-12-04 22:43:36 +0000
committerH.J. Lu <hjl.tools@gmail.com>2003-12-04 22:43:36 +0000
commitd9c458fcc1f8b060d4cbf6c4e582b20649cbee47 (patch)
treef2c4a384728c8ed9c7654fd6cd5cbece54be24e6 /ld
parent858b45cfbf03c238202921c0d28d25af364676d6 (diff)
downloadgdb-d9c458fcc1f8b060d4cbf6c4e582b20649cbee47.zip
gdb-d9c458fcc1f8b060d4cbf6c4e582b20649cbee47.tar.gz
gdb-d9c458fcc1f8b060d4cbf6c4e582b20649cbee47.tar.bz2
bfd/
2003-12-04 H.J. Lu <hongjiu.lu@intel.com> * elfxx-ia64.c (elfNN_ia64_relax_section): Use the need_relax_finalize field in link_info instead of relax_finalizing to check if the relax finalize pass is being done. include/ 2003-12-04 H.J. Lu <hongjiu.lu@intel.com> * bfdlink.h (bfd_link_info): Change relax_finalizing to need_relax_finalize. ld/ 2003-12-04 H.J. Lu <hongjiu.lu@intel.com> * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Set link_info.need_relax_finalize to TRUE. * ldlang.c (lang_process): Use link_info.need_relax_finalize instead of link_info.relax_finalizing. * ldmain.c (main): Likewise.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog9
-rw-r--r--ld/emultempl/ia64elf.em1
-rw-r--r--ld/ldlang.c4
-rw-r--r--ld/ldmain.c2
4 files changed, 13 insertions, 3 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 6057102..bf844d1 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,12 @@
+2003-12-04 H.J. Lu <hongjiu.lu@intel.com>
+
+ * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Set
+ link_info.need_relax_finalize to TRUE.
+
+ * ldlang.c (lang_process): Use link_info.need_relax_finalize
+ instead of link_info.relax_finalizing.
+ * ldmain.c (main): Likewise.
+
2003-12-04 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
* armpe.sh (RELOCATEABLE_OUTPUT_FORMAT): Define.
diff --git a/ld/emultempl/ia64elf.em b/ld/emultempl/ia64elf.em
index 3964059..eee467b 100644
--- a/ld/emultempl/ia64elf.em
+++ b/ld/emultempl/ia64elf.em
@@ -32,6 +32,7 @@ static int itanium = 0;
static void
gld${EMULATION_NAME}_after_parse (void)
{
+ link_info.need_relax_finalize = TRUE;
bfd_elf${ELFSIZE}_ia64_after_parse (itanium);
}
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 3353f98..e371404 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -4262,9 +4262,9 @@ lang_process (void)
/* If the normal relax is done and the relax finalize pass
is not performed yet, we perform another relax pass. */
- if (!relax_again && !link_info.relax_finalizing)
+ if (!relax_again && link_info.need_relax_finalize)
{
- link_info.relax_finalizing = TRUE;
+ link_info.need_relax_finalize = FALSE;
relax_again = TRUE;
}
}
diff --git a/ld/ldmain.c b/ld/ldmain.c
index 51e8b8a..bbafcdb 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -321,7 +321,7 @@ main (int argc, char **argv)
link_info.spare_dynamic_tags = 5;
link_info.flags = 0;
link_info.flags_1 = 0;
- link_info.relax_finalizing = FALSE;
+ link_info.need_relax_finalize = FALSE;
ldfile_add_arch ("");