aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2002-02-17 21:38:03 +0000
committerHans-Peter Nilsson <hp@axis.com>2002-02-17 21:38:03 +0000
commit1c5e64470287c5496a45bc0698b99ce9fd7c60cf (patch)
tree206f26a2edbc6120f32fcd87715ec43c462f8a9b /ld
parentfe108482d45e340488712b85ed64507b8e01cfa6 (diff)
downloadfsf-binutils-gdb-1c5e64470287c5496a45bc0698b99ce9fd7c60cf.zip
fsf-binutils-gdb-1c5e64470287c5496a45bc0698b99ce9fd7c60cf.tar.gz
fsf-binutils-gdb-1c5e64470287c5496a45bc0698b99ce9fd7c60cf.tar.bz2
* emultempl/mmo.em (mmo_after_open): Don't call
_bfd_mmix_check_all_relocs when producing ELF output.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/emultempl/mmo.em18
2 files changed, 18 insertions, 5 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index f56d805..089f441 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
+
+ * emultempl/mmo.em (mmo_after_open): Don't call
+ _bfd_mmix_check_all_relocs when producing ELF output.
+
2002-02-15 Richard Henderson <rth@redhat.com>
* emulparams/elf64alpha.sh (NOP): Adjust for big-endian
diff --git a/ld/emultempl/mmo.em b/ld/emultempl/mmo.em
index 1a3941d..32be230 100644
--- a/ld/emultempl/mmo.em
+++ b/ld/emultempl/mmo.em
@@ -238,12 +238,20 @@ mmo_finish ()
static void
mmo_after_open ()
{
- LANG_FOR_EACH_INPUT_STATEMENT (is)
+ /* When there's a mismatch between the output format and the emulation
+ (using weird combinations like "-m mmo --oformat elf64-mmix" for
+ example), we'd count relocs twice because they'd also be counted
+ along the usual route for ELF-only linking, which would lead to an
+ internal accounting error. */
+ if (bfd_get_flavour (output_bfd) != bfd_target_elf_flavour)
{
- if (bfd_get_flavour (is->the_bfd) == bfd_target_elf_flavour
- && !_bfd_mmix_check_all_relocs (is->the_bfd, &link_info))
- einfo ("%X%P: Internal problems scanning %B after opening it",
- is->the_bfd);
+ LANG_FOR_EACH_INPUT_STATEMENT (is)
+ {
+ if (bfd_get_flavour (is->the_bfd) == bfd_target_elf_flavour
+ && !_bfd_mmix_check_all_relocs (is->the_bfd, &link_info))
+ einfo ("%X%P: Internal problems scanning %B after opening it",
+ is->the_bfd);
+ }
}
}
EOF