diff options
author | H.J. Lu <hjl@lucon.org> | 2003-03-20 16:04:18 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2003-03-20 16:04:18 +0000 |
commit | 24904a9247409d271ebb5e3fc5e1c3e7ede1cb9a (patch) | |
tree | 1c1135c91c86014a03b423a6c7d291d23359eb76 | |
parent | de246728c494e6717f3ed9c43087942d7cfc8b36 (diff) | |
download | binutils-redhat-24904a9247409d271ebb5e3fc5e1c3e7ede1cb9a.tar.gz |
2003-03-20 H.J. Lu <hjl@gnu.org>
* elfxx-ia64.c (elfNN_ia64_relax_section): Don't try relax for
non-ELF outputs.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elfxx-ia64.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 364b6c5e90..8fe49ce0e0 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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 diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c index 56c2819e15..d46d78c5c4 100644 --- a/bfd/elfxx-ia64.c +++ b/bfd/elfxx-ia64.c @@ -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) |