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 | 4d2e1ff0a695d66f13d9c2c27817b843246bd329 (patch) | |
tree | b9df22cccc8f3e04723571ace1820083afb89218 /bfd | |
parent | e33d66ec21c1c4bfc0bfb43d9e696183721dac2b (diff) | |
download | gdb-4d2e1ff0a695d66f13d9c2c27817b843246bd329.zip gdb-4d2e1ff0a695d66f13d9c2c27817b843246bd329.tar.gz gdb-4d2e1ff0a695d66f13d9c2c27817b843246bd329.tar.bz2 |
Make the R_XSTORMY16_8 and R_XSTORMY16_16 relocs detect and complain about
unsigned overflow.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/elf32-xstormy16.c | 10 |
2 files changed, 11 insertions, 5 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b9044f5..02ec313 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2003-05-02 Nick Clifton <nickc@redhat.com> + + * elf32-xstormy16.c (xstormy16_elf_howto_table): Make the + R_XSTORMY16_8 and R_XSTORMY16_16 relocs detect and complain about + unsigned overflow. + 2003-05-02 Andreas Jaeger <aj@suse.de> * elf64-x86-64.c (elf_x86_64_copy_indirect_symbol): Don't copy diff --git a/bfd/elf32-xstormy16.c b/bfd/elf32-xstormy16.c index 22ab8ef..d06f8b2 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. */ |