This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Don't do relax for non-ELF ia64 outputs


It is not supported and we shouldn't try.

H.J.
---
2003-03-10  H.J. Lu <hjl at gnu dot org>

	* elfxx-ia64.c (elfNN_ia64_relax_section): Don't try relax for
	non-ELF outputs.

--- bfd/elfxx-ia64.c.srec	2003-03-07 16:46:42.000000000 -0800
+++ bfd/elfxx-ia64.c	2003-03-10 16:34:54.000000000 -0800
@@ -697,6 +697,10 @@ elfNN_ia64_relax_section (abfd, sec, lin
      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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]