diff options
author | Nick Clifton <nickc@redhat.com> | 2003-05-02 14:41:08 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2003-05-02 14:41:08 +0000 |
commit | f46a9c298dcdad113b24edc752cf02890581108e (patch) | |
tree | 4a85dc03820af5fb59eb10fbaa2056b16518f02f /bfd/elf32-xstormy16.c | |
parent | e80f814e7bc1c259bad4b77ca2041fcf2d313ac6 (diff) | |
download | binutils-redhat-f46a9c298dcdad113b24edc752cf02890581108e.tar.gz |
Make the R_XSTORMY16_8 and R_XSTORMY16_16 relocs detect and complain about
unsigned overflow.
Diffstat (limited to 'bfd/elf32-xstormy16.c')
-rw-r--r-- | bfd/elf32-xstormy16.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bfd/elf32-xstormy16.c b/bfd/elf32-xstormy16.c index 22ab8ef57c..d06f8b29a9 100644 --- a/bfd/elf32-xstormy16.c +++ b/bfd/elf32-xstormy16.c @@ -96,27 +96,27 @@ static reloc_howto_type xstormy16_elf_howto_table [] = 16, /* bitsize */ FALSE, /* pc_relative */ 0, /* bitpos */ - complain_overflow_bitfield, /* complain_on_overflow */ + complain_overflow_unsigned, /* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_XSTORMY16_16", /* name */ FALSE, /* partial_inplace */ 0, /* src_mask */ - 0xffffffff, /* dst_mask */ + 0xffff, /* dst_mask */ FALSE), /* pcrel_offset */ /* An 8 bit absolute relocation. */ - HOWTO (R_XSTORMY16_8, /* type */ + HOWTO (R_XSTORMY16_8, /* type */ 0, /* rightshift */ 0, /* size (0 = byte, 1 = short, 2 = long) */ 8, /* bitsize */ FALSE, /* pc_relative */ 0, /* bitpos */ - complain_overflow_bitfield, /* complain_on_overflow */ + complain_overflow_unsigned, /* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_XSTORMY16_8", /* name */ FALSE, /* partial_inplace */ 0, /* src_mask */ - 0xffffffff, /* dst_mask */ + 0xff, /* dst_mask */ FALSE), /* pcrel_offset */ /* A 32 bit pc-relative relocation. */ |