diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2016-02-05 10:15:26 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2016-02-05 10:15:26 +0000 |
commit | 6f57d0469ae5e73643aa5ef96a10e6bae7a79a15 (patch) | |
tree | e94809b3de1d32823762c7755e89f0bba77db3bc | |
parent | bdbca4e6f805c73796c14c79102a8f1ea541d633 (diff) | |
download | gdb-6f57d0469ae5e73643aa5ef96a10e6bae7a79a15.zip gdb-6f57d0469ae5e73643aa5ef96a10e6bae7a79a15.tar.gz gdb-6f57d0469ae5e73643aa5ef96a10e6bae7a79a15.tar.bz2 |
Fix formatting of pe-mips.c file.
* pe-mips.c (coff_mips_reloc): Fix formatting.
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/pe-mips.c | 60 |
2 files changed, 34 insertions, 30 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e378a3e..88c663c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2016-02-05 Simon Marchi <simon.marchi@ericsson.com> + + * pe-mips.c (coff_mips_reloc): Fix formatting. + 2016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com> * cpu-arc.c: Change default archure from bfd_mach_arc_arcv2 diff --git a/bfd/pe-mips.c b/bfd/pe-mips.c index 39e4adf..53a5983 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; |