This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
stormy16: Reset R_XSTORMY16_16 reloc to ignore overflows
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: 07 May 2003 16:11:02 +0100
- Subject: stormy16: Reset R_XSTORMY16_16 reloc to ignore overflows
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 */