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: R_XSTORMY16_16: Use bitfield overflow detection


Hi Guys,

  As pointed out by Alan Modra and others the R_XSTORMY16_16 reloc
  really should be using 'bitfield' style overflow detection rather
  than ignoring overflows.  Fixed by applying the following patch.

Cheers
        Nick

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

	* elf32-xstormy16.c (xstormy16_elf_howto_table): use 'bitfield'
	overflow detection for R_XSTORMY16_16 reloc.

Index: bfd/elf32-xstormy16.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-xstormy16.c,v
retrieving revision 1.19
diff -c -3 -p -w -r1.19 elf32-xstormy16.c
*** bfd/elf32-xstormy16.c	7 May 2003 15:16:35 -0000	1.19
--- bfd/elf32-xstormy16.c	9 May 2003 14:01:20 -0000
*************** static reloc_howto_type xstormy16_elf_ho
*** 96,102 ****
  	 16,			/* bitsize */
  	 FALSE,			/* pc_relative */
  	 0,			/* bitpos */
! 	 complain_overflow_dont, /* complain_on_overflow */
  	 bfd_elf_generic_reloc,	/* special_function */
  	 "R_XSTORMY16_16",	/* name */
  	 FALSE,			/* partial_inplace */
--- 96,102 ----
  	 16,			/* bitsize */
  	 FALSE,			/* pc_relative */
  	 0,			/* bitpos */
! 	 complain_overflow_bitfield, /* complain_on_overflow */
  	 bfd_elf_generic_reloc,	/* special_function */
  	 "R_XSTORMY16_16",	/* name */
  	 FALSE,			/* partial_inplace */
        


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