[m32c] don't complain about intentional overflows
DJ Delorie
dj@redhat.com
Fri Jan 26 00:01:00 GMT 2007
More information about the Binutils mailing list
Fri Jan 26 00:01:00 GMT 2007
- Previous message (by thread): PATCH: Support LD_SYMBOLIC and LD_SYMBOLIC_FUNCTIONS
- Next message (by thread): mn10300: clarify a diagnostic
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Committed. 2007-01-25 DJ Delorie <dj@redhat.com> * elf32-m32c.c (m32c_elf_howto_table): Don't complain about R_M32C_16 or R_M32C_24 relocs. Index: elf32-m32c.c =================================================================== RCS file: /cvs/src/src/bfd/elf32-m32c.c,v retrieving revision 1.9 diff -p -U3 -r1.9 elf32-m32c.c --- elf32-m32c.c 28 Sep 2006 13:27:33 -0000 1.9 +++ elf32-m32c.c 25 Jan 2007 23:52:25 -0000 @@ -60,13 +60,16 @@ static reloc_howto_type m32c_elf_howto_t 0, /* dst_mask */ FALSE), /* pcrel_offset */ + /* GCC intentionally overflows these next two in order to work + around limitations in the addressing modes, so don't complain + about overflow. */ HOWTO (R_M32C_16, /* type */ 0, /* rightshift */ 1, /* size (0 = byte, 1 = short, 2 = long) */ 16, /* bitsize */ FALSE, /* pc_relative */ 0, /* bitpos */ - complain_overflow_bitfield, /* complain_on_overflow */ + complain_overflow_dont, /* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_M32C_16", /* name */ FALSE, /* partial_inplace */ @@ -80,7 +83,7 @@ static reloc_howto_type m32c_elf_howto_t 24, /* bitsize */ FALSE, /* pc_relative */ 0, /* bitpos */ - complain_overflow_bitfield, /* complain_on_overflow */ + complain_overflow_dont, /* complain_on_overflow */ bfd_elf_generic_reloc, /* special_function */ "R_M32C_24", /* name */ FALSE, /* partial_inplace */
- Previous message (by thread): PATCH: Support LD_SYMBOLIC and LD_SYMBOLIC_FUNCTIONS
- Next message (by thread): mn10300: clarify a diagnostic
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list