Fix BE8 shared libraries

Paul Brook paul@codesourcery.com
Mon Jun 9 19:15:00 GMT 2008


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"), 



More information about the Binutils mailing list