* elf32-m32c.c (m32c_elf_howto_table): Don't complain about
authorDJ Delorie <dj@redhat.com>
Fri, 26 Jan 2007 00:00:47 +0000 (00:00 +0000)
committerDJ Delorie <dj@redhat.com>
Fri, 26 Jan 2007 00:00:47 +0000 (00:00 +0000)
R_M32C_16 or R_M32C_24 relocs.

bfd/ChangeLog
bfd/elf32-m32c.c

index 33fcec6ac40fb5b20919ace19649dee90cc7c345..c2aa8033c0956dbeee8762b200f15725ebc7e7a1 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2007-01-25  Nick Clifton  <nickc@redhat.com>
 
        PR binutils/3874
index 50538c9e08ca69d0439a114a53ca8cc3d91872dd..492c5bc8e822bfb7c6e388807eac84df17af492b 100644 (file)
@@ -60,13 +60,16 @@ static reloc_howto_type m32c_elf_howto_table [] =
         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_table [] =
         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 */
This page took 0.03264 seconds and 4 git commands to generate.