]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elf32-xc16x.c
BFD whitespace fixes
[thirdparty/binutils-gdb.git] / bfd / elf32-xc16x.c
index d5bc3ad650f21601526358b33d5a3d99c3207dc9..8ce0d614f25774dccd1b9b8e77d8611a525d903f 100644 (file)
@@ -75,18 +75,18 @@ static reloc_howto_type xc16x_elf_howto_table [] =
         FALSE),                /* pcrel_offset */
 
   HOWTO (R_XC16X_ABS_32,       /* type */
-        0,                     /* rightshift */
-        2,                     /* size (0 = byte, 1 = short, 2 = long) */
-        32,                    /* bitsize */
-        FALSE,                 /* pc_relative */
-        0,                     /* bitpos */
-        complain_overflow_bitfield, /* complain_on_overflow */
-        bfd_elf_generic_reloc, /* special_function */
-        "R_XC16X_ABS_32",      /* name */
-        TRUE,                  /* partial_inplace */
-        0x00000000,            /* src_mask */
-        0xffffffff,            /* dst_mask */
-        FALSE),                /* pcrel_offset */
+        0,                     /* rightshift */
+        2,                     /* size (0 = byte, 1 = short, 2 = long) */
+        32,                    /* bitsize */
+        FALSE,                 /* pc_relative */
+        0,                     /* bitpos */
+        complain_overflow_bitfield, /* complain_on_overflow */
+        bfd_elf_generic_reloc, /* special_function */
+        "R_XC16X_ABS_32",      /* name */
+        TRUE,                  /* partial_inplace */
+        0x00000000,            /* src_mask */
+        0xffffffff,            /* dst_mask */
+        FALSE),                /* pcrel_offset */
 
 
   /* A PC relative 8 bit relocation.  */
@@ -106,65 +106,65 @@ static reloc_howto_type xc16x_elf_howto_table [] =
 
   /* Relocation regarding page number.  */
     HOWTO (R_XC16X_PAG,        /* type */
-        0,                     /* rightshift */
-        1,                     /* size (0 = byte, 1 = short, 2 = long) */
-        16,                    /* bitsize */
-        FALSE,                 /* pc_relative */
-        0,                     /* bitpos */
-        complain_overflow_signed, /* complain_on_overflow */
-        bfd_elf_generic_reloc, /* special_function */
-        "R_XC16X_PAG", /* name */
-        TRUE,                  /* partial_inplace */
-        0x00000000,            /* src_mask */
-        0x0000ffff,            /* dst_mask */
-        FALSE),                /* pcrel_offset */
+        0,                     /* rightshift */
+        1,                     /* size (0 = byte, 1 = short, 2 = long) */
+        16,                    /* bitsize */
+        FALSE,                 /* pc_relative */
+        0,                     /* bitpos */
+        complain_overflow_signed, /* complain_on_overflow */
+        bfd_elf_generic_reloc, /* special_function */
+        "R_XC16X_PAG", /* name */
+        TRUE,                  /* partial_inplace */
+        0x00000000,            /* src_mask */
+        0x0000ffff,            /* dst_mask */
+        FALSE),                /* pcrel_offset */
 
 
   /* Relocation regarding page number.  */
       HOWTO (R_XC16X_POF,      /* type */
-        0,                     /* rightshift */
-        1,                     /* size (0 = byte, 1 = short, 2 = long) */
-        16,                    /* bitsize */
-        FALSE,                 /* pc_relative */
-        0,                     /* bitpos  */
-        complain_overflow_signed, /* complain_on_overflow  */
-        bfd_elf_generic_reloc, /* special_function  */
-        "R_XC16X_POF", /* name  */
-        TRUE,                  /* partial_inplace  */
-        0x00000000,            /* src_mask  */
-        0x0000ffff,            /* dst_mask  */
-        FALSE),                /* pcrel_offset  */
+        0,                     /* rightshift */
+        1,                     /* size (0 = byte, 1 = short, 2 = long) */
+        16,                    /* bitsize */
+        FALSE,                 /* pc_relative */
+        0,                     /* bitpos  */
+        complain_overflow_signed, /* complain_on_overflow  */
+        bfd_elf_generic_reloc, /* special_function  */
+        "R_XC16X_POF", /* name  */
+        TRUE,                  /* partial_inplace  */
+        0x00000000,            /* src_mask  */
+        0x0000ffff,            /* dst_mask  */
+        FALSE),                /* pcrel_offset  */
 
 
   /* Relocation regarding segment number.   */
       HOWTO (R_XC16X_SEG,      /* type  */
-        0,                     /* rightshift  */
-        1,                     /* size (0 = byte, 1 = short, 2 = long)  */
-        16,                    /* bitsize  */
-        FALSE,                 /* pc_relative  */
-        0,                     /* bitpos  */
-        complain_overflow_signed, /* complain_on_overflow  */
-        bfd_elf_generic_reloc, /* special_function  */
-        "R_XC16X_SEG", /* name  */
-        TRUE,                  /* partial_inplace  */
-        0x00000000,            /* src_mask  */
-        0x0000ffff,            /* dst_mask  */
-        FALSE),                /* pcrel_offset  */
+        0,                     /* rightshift  */
+        1,                     /* size (0 = byte, 1 = short, 2 = long)  */
+        16,                    /* bitsize  */
+        FALSE,                 /* pc_relative  */
+        0,                     /* bitpos  */
+        complain_overflow_signed, /* complain_on_overflow  */
+        bfd_elf_generic_reloc, /* special_function  */
+        "R_XC16X_SEG", /* name  */
+        TRUE,                  /* partial_inplace  */
+        0x00000000,            /* src_mask  */
+        0x0000ffff,            /* dst_mask  */
+        FALSE),                /* pcrel_offset  */
 
   /* Relocation regarding segment offset.  */
       HOWTO (R_XC16X_SOF,      /* type  */
-        0,                     /* rightshift  */
-        1,                     /* size (0 = byte, 1 = short, 2 = long)  */
-        16,                    /* bitsize  */
-        FALSE,                 /* pc_relative  */
-        0,                     /* bitpos  */
-        complain_overflow_signed, /* complain_on_overflow  */
-        bfd_elf_generic_reloc, /* special_function  */
-        "R_XC16X_SOF", /* name */
-        TRUE,                  /* partial_inplace  */
-        0x00000000,            /* src_mask  */
-        0x0000ffff,            /* dst_mask  */
-        FALSE)                 /* pcrel_offset  */
+        0,                     /* rightshift  */
+        1,                     /* size (0 = byte, 1 = short, 2 = long)  */
+        16,                    /* bitsize  */
+        FALSE,                 /* pc_relative  */
+        0,                     /* bitpos  */
+        complain_overflow_signed, /* complain_on_overflow  */
+        bfd_elf_generic_reloc, /* special_function  */
+        "R_XC16X_SOF", /* name */
+        TRUE,                  /* partial_inplace  */
+        0x00000000,            /* src_mask  */
+        0x0000ffff,            /* dst_mask  */
+        FALSE)                 /* pcrel_offset  */
 };
 
 
@@ -178,11 +178,11 @@ struct xc16x_reloc_map
 
 static const struct xc16x_reloc_map xc16x_reloc_map [] =
 {
-  { BFD_RELOC_NONE,           R_XC16X_NONE },
-  { BFD_RELOC_8,              R_XC16X_ABS_8 },
-  { BFD_RELOC_16,             R_XC16X_ABS_16 },
-  { BFD_RELOC_32,             R_XC16X_ABS_32 },
-  { BFD_RELOC_8_PCREL,        R_XC16X_8_PCREL },
+  { BFD_RELOC_NONE,          R_XC16X_NONE },
+  { BFD_RELOC_8,             R_XC16X_ABS_8 },
+  { BFD_RELOC_16,            R_XC16X_ABS_16 },
+  { BFD_RELOC_32,            R_XC16X_ABS_32 },
+  { BFD_RELOC_8_PCREL,       R_XC16X_8_PCREL },
   { BFD_RELOC_XC16X_PAG,      R_XC16X_PAG},
   { BFD_RELOC_XC16X_POF,      R_XC16X_POF},
   { BFD_RELOC_XC16X_SEG,      R_XC16X_SEG},
@@ -465,13 +465,13 @@ elf32_xc16x_object_p (bfd *abfd)
 #define TARGET_LITTLE_SYM       xc16x_elf32_vec
 #define TARGET_LITTLE_NAME     "elf32-xc16x"
 #define elf_backend_final_write_processing     elf32_xc16x_final_write_processing
-#define elf_backend_object_p                   elf32_xc16x_object_p
+#define elf_backend_object_p           elf32_xc16x_object_p
 #define elf_backend_can_gc_sections    1
 #define bfd_elf32_bfd_reloc_type_lookup        xc16x_reloc_type_lookup
 #define bfd_elf32_bfd_reloc_name_lookup xc16x_reloc_name_lookup
 #define elf_info_to_howto              elf32_xc16x_info_to_howto
 #define elf_info_to_howto_rel          elf32_xc16x_info_to_howto
-#define elf_backend_relocate_section   elf32_xc16x_relocate_section
+#define elf_backend_relocate_section   elf32_xc16x_relocate_section
 #define elf_backend_rela_normal                1
 
 #include "elf32-target.h"