From: Simon Marchi Date: Fri, 5 Feb 2016 10:15:26 +0000 (+0000) Subject: Fix formatting of pe-mips.c file. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6f57d0469ae5e73643aa5ef96a10e6bae7a79a15;p=binutils-gdb.git Fix formatting of pe-mips.c file. * pe-mips.c (coff_mips_reloc): Fix formatting. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e378a3ea5ec..88c663c19a3 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2016-02-05 Simon Marchi + + * pe-mips.c (coff_mips_reloc): Fix formatting. + 2016-02-05 Cupertino Miranda * cpu-arc.c: Change default archure from bfd_mach_arc_arcv2 diff --git a/bfd/pe-mips.c b/bfd/pe-mips.c index 39e4adfd2f6..53a5983abda 100644 --- a/bfd/pe-mips.c +++ b/bfd/pe-mips.c @@ -95,44 +95,44 @@ coff_mips_reloc (bfd *abfd, #define DOIT(x) \ x = ((x & ~howto->dst_mask) | (((x & howto->src_mask) + (diff >> howto->rightshift)) & howto->dst_mask)) - if (diff != 0) - { - reloc_howto_type *howto = reloc_entry->howto; - unsigned char *addr = (unsigned char *) data + reloc_entry->address; + if (diff != 0) + { + reloc_howto_type *howto = reloc_entry->howto; + unsigned char *addr = (unsigned char *) data + reloc_entry->address; - switch (howto->size) + switch (howto->size) + { + case 0: { - case 0: - { - char x = bfd_get_8 (abfd, addr); - - DOIT (x); - bfd_put_8 (abfd, x, addr); - } - break; + char x = bfd_get_8 (abfd, addr); - case 1: - { - short x = bfd_get_16 (abfd, addr); + DOIT (x); + bfd_put_8 (abfd, x, addr); + } + break; - DOIT (x); - bfd_put_16 (abfd, (bfd_vma) x, addr); - } - break; + case 1: + { + short x = bfd_get_16 (abfd, addr); - case 2: - { - long x = bfd_get_32 (abfd, addr); + DOIT (x); + bfd_put_16 (abfd, (bfd_vma) x, addr); + } + break; - DOIT (x); - bfd_put_32 (abfd, (bfd_vma) x, addr); - } - break; + case 2: + { + long x = bfd_get_32 (abfd, addr); - default: - abort (); + DOIT (x); + bfd_put_32 (abfd, (bfd_vma) x, addr); } - } + break; + + default: + abort (); + } + } /* Now let bfd_perform_relocation finish everything up. */ return bfd_reloc_continue;