stormy16: Reset R_XSTORMY16_16 reloc to ignore overflows

Nick Clifton nickc@redhat.com
Wed May 7 15:16:00 GMT 2003


Hi Guys,

  It turns out that the R_XSTORMY16_16 reloc needs to ignore overflows
  as it gcc can generate code which is valid, but which also generates
  signed overflows.  Valid assembler sources however can generate
  unsigned overflows, so the best thing to do is to ignore both.

Cheers
        Nick

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

	* elf32-xstormy16.c (xstormy16_elf_howto_table): Reset
	R_XSTORMY16_16 reloc to ignore overflows.

Index: bfd/elf32-xstormy16.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-xstormy16.c,v
retrieving revision 1.18
diff -c -3 -p -w -r1.18 elf32-xstormy16.c
*** bfd/elf32-xstormy16.c	2 May 2003 14:41:08 -0000	1.18
--- bfd/elf32-xstormy16.c	7 May 2003 15:13:26 -0000
*************** static reloc_howto_type xstormy16_elf_ho
*** 96,102 ****
  	 16,			/* bitsize */
  	 FALSE,			/* pc_relative */
  	 0,			/* bitpos */
! 	 complain_overflow_unsigned, /* 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_dont, /* complain_on_overflow */
  	 bfd_elf_generic_reloc,	/* special_function */
  	 "R_XSTORMY16_16",	/* name */
  	 FALSE,			/* partial_inplace */



More information about the Binutils mailing list