OSDN Git Service

2003-03-20 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl@lucon.org>
Thu, 20 Mar 2003 16:04:18 +0000 (16:04 +0000)
committerH.J. Lu <hjl@lucon.org>
Thu, 20 Mar 2003 16:04:18 +0000 (16:04 +0000)
* elfxx-ia64.c (elfNN_ia64_relax_section): Don't try relax for
non-ELF outputs.

bfd/ChangeLog
bfd/elfxx-ia64.c

index 364b6c5..8fe49ce 100644 (file)
@@ -1,3 +1,8 @@
+2003-03-20  H.J. Lu <hjl@gnu.org>
+
+       * elfxx-ia64.c (elfNN_ia64_relax_section): Don't try relax for
+       non-ELF outputs.
+
 2003-03-20  Nick Clifton  <nickc@redhat.com>
 
        * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Initialise $idata2 and
index 56c2819..d46d78c 100644 (file)
@@ -696,6 +696,10 @@ elfNN_ia64_relax_section (abfd, sec, link_info, again)
      one pass.  */
   *again = FALSE;
 
+  /* Don't even try to relax for non-ELF outputs.  */
+  if (link_info->hash->creator->flavour != bfd_target_elf_flavour)
+    return FALSE;
+
   /* Nothing to do if there are no relocations.  */
   if ((sec->flags & SEC_RELOC) == 0
       || sec->reloc_count == 0)