This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Don't do relax for non-ELF ia64 outputs
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Wed, 19 Mar 2003 17:13:02 -0800
- Subject: 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)