This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix arm-epoc-pe build problem.


Hi Guys,

  The recent patch to add support for .secrel relocations to the
  arm-wince target broke arm-epoc-pe builds.  I am applying the patch
  below to fix this.

Cheers
  Nick

bfd/ChangeLog
2006-08-07  Nick Clifton  <nickc@redhat.com>

	* coff-arm.c (coff_arm_rtype_to_howto): Only check for ARM_SECREL
	relocation types if the target is ARM_WINCE.

Index: bfd/coff-arm.c
===================================================================
RCS file: /cvs/src/src/bfd/coff-arm.c,v
retrieving revision 1.66
diff -c -3 -p -r1.66 coff-arm.c
*** bfd/coff-arm.c	6 Aug 2006 15:04:17 -0000	1.66
--- bfd/coff-arm.c	7 Aug 2006 10:22:48 -0000
*************** coff_arm_rtype_to_howto (bfd *abfd ATTRI
*** 539,545 ****
    if (rel->r_type == ARM_RVA32)
      *addendp -= pe_data (sec->output_section->owner)->pe_opthdr.ImageBase;
  
! #ifdef COFF_WITH_PE
    if (rel->r_type == ARM_SECREL)
      {
        bfd_vma osect_vma;
--- 539,545 ----
    if (rel->r_type == ARM_RVA32)
      *addendp -= pe_data (sec->output_section->owner)->pe_opthdr.ImageBase;
  
! #if defined COFF_WITH_PE && defined ARM_WINCE
    if (rel->r_type == ARM_SECREL)
      {
        bfd_vma osect_vma;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]