Patch: Fix destination mask for R_XSTORMY16_REL_12
Nick Clifton
nickc@redhat.com
Wed May 21 12:36:00 GMT 2003
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. */
More information about the Binutils
mailing list