This is the mail archive of the binutils@sources.redhat.com 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 destination mask for R_XSTORMY16_REL_12


Hi Guys,

  There is a small bug in the definition of the R_XSTORMY16_REL_12
  reloc.  The least significant bit of the instruction is part of the
  opcode and not the operand.  Fixed by applying this patch (mainline
  only, since xstormy16 development work is still in progress).

Cheers
        Nick

2003-05-21  Nick Clifton  <nickc@redhat.com>

	* elf32-xstormy16.c (xstormy16_elf_howto_table): Fix dst_mask
	for X_STORMY16_REL_12 reloc.

Index: elf32-xstormy16.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-xstormy16.c,v
retrieving revision 1.20
diff -c -3 -p -w -r1.20 elf32-xstormy16.c
*** elf32-xstormy16.c   12 May 2003 09:12:48 -0000      1.20
--- elf32-xstormy16.c   21 May 2003 12:31:46 -0000
*************** static reloc_howto_type xstormy16_elf_ho
*** 176,182 ****
         "R_XSTORMY16_REL_12",  /* name */
         FALSE,                 /* partial_inplace */
         0,                     /* src_mask */
!        0x0fff,                /* dst_mask */
         TRUE),                 /* pcrel_offset */
   
    /* A 24-bit absolute relocation suitable for the jump instructions.  */
--- 176,182 ----
         "R_XSTORMY16_REL_12",  /* name */
         FALSE,                 /* partial_inplace */
         0,                     /* src_mask */
!        0x0ffe,                /* dst_mask */
         TRUE),                 /* pcrel_offset */
   
    /* A 24-bit absolute relocation suitable for the jump instructions.  */




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