This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
m68k: don't fail when linking in a binary object
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: binutils at sourceware dot org
- Date: Mon, 06 May 2019 13:01:56 +0200
- Subject: m68k: don't fail when linking in a binary object
This is used by glib to add some random data to the linked object.
Andreas.
PR binutils/24523
* elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Return TRUE if
input or output is non-ELF.
---
bfd/elf32-m68k.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bfd/elf32-m68k.c b/bfd/elf32-m68k.c
index 9b34b62440..0f225224f9 100644
--- a/bfd/elf32-m68k.c
+++ b/bfd/elf32-m68k.c
@@ -1134,7 +1134,7 @@ elf32_m68k_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info)
if ( bfd_get_flavour (ibfd) != bfd_target_elf_flavour
|| bfd_get_flavour (obfd) != bfd_target_elf_flavour)
- return FALSE;
+ return TRUE;
/* Get the merged machine. This checks for incompatibility between
Coldfire & non-Coldfire flags, incompability between different
--
2.21.0
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."