This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Fix BE8 shared libraries
- From: Paul Brook <paul at codesourcery dot com>
- To: binutils at sourceware dot org
- Date: Mon, 9 Jun 2008 16:19:39 +0100
- Subject: Fix BE8 shared libraries
My previous patch to reject BE8 linker input was a little too paranoid.
The patch below makes it allow linking against BE8 shared libraries.
Tested on arm-none-linux-gnueabi
Applied to CVS head.
Paul
2008-06-09 Paul Brook <paul@codesourcery.com>
bfd/
* elf32-arm.c (elf32_arm_merge_private_bfd_data): Allow BE8 shared
libraries.
Index: bfd/elf32-arm.c
===================================================================
--- bfd/elf32-arm.c (revision 210944)
+++ bfd/elf32-arm.c (working copy)
@@ -7016,6 +7016,7 @@ elf32_arm_merge_private_bfd_data (bfd *
in practice it isn't even close to working and there is no real
reason to want it. */
if (EF_ARM_EABI_VERSION (in_flags) >= EF_ARM_EABI_VER4
+ && !(ibfd->flags & DYNAMIC)
&& (in_flags & EF_ARM_BE8))
{
_bfd_error_handler (_("ERROR: %B is already in final BE8 format"),