aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-03-14 10:39:46 +0000
committerAlan Modra <amodra@gmail.com>2002-03-14 10:39:46 +0000
commitd35a52e2a7b47b4a87dbc55e54c5ba9992938946 (patch)
tree7008d4606976e52410d66a87af1f48ec264b1822 /ld/ldlang.c
parentc119f9b800af8b672753a3e557f3bda4f41ec826 (diff)
downloadgdb-d35a52e2a7b47b4a87dbc55e54c5ba9992938946.zip
gdb-d35a52e2a7b47b4a87dbc55e54c5ba9992938946.tar.gz
gdb-d35a52e2a7b47b4a87dbc55e54c5ba9992938946.tar.bz2
* ldlang.c (lang_check): Remove the word size check added in last
change. Treat emitrelocations case as for relocatable links.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 9858fff..4c4d880 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -3577,11 +3577,9 @@ lang_check ()
input format may not have equivalent representations in
the output format (and besides BFD does not translate
relocs for other link purposes than a final link). */
- if (link_info.relocateable
+ if ((link_info.relocateable || link_info.emitrelocations)
&& (compatible == NULL
- || bfd_get_flavour (input_bfd) != bfd_get_flavour (output_bfd)
- || (input_bfd->arch_info->bits_per_word
- != output_bfd->arch_info->bits_per_word))
+ || bfd_get_flavour (input_bfd) != bfd_get_flavour (output_bfd))
&& (bfd_get_file_flags (input_bfd) & HAS_RELOC) != 0)
{
einfo (_("%P%F: Relocatable linking with relocations from format %s (%B) to format %s (%B) is not supported\n"),