diff options
author | Nick Clifton <nickc@redhat.com> | 2015-12-18 08:49:02 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-12-18 08:49:02 +0000 |
commit | ec70be9f6162aca5fb14876e232e68c64b1faa7f (patch) | |
tree | 54454a2712c628381e3be9fbd9555016aa935389 /bfd/coff-i386.c | |
parent | ce3e49806d505721e0875e704de0b6fcba7660ed (diff) | |
download | fsf-binutils-gdb-ec70be9f6162aca5fb14876e232e68c64b1faa7f.zip fsf-binutils-gdb-ec70be9f6162aca5fb14876e232e68c64b1faa7f.tar.gz fsf-binutils-gdb-ec70be9f6162aca5fb14876e232e68c64b1faa7f.tar.bz2 |
Fix formatting of coff-i386.c
* coff-i386.c (coff_i386_reloc): Fix formatting.
Diffstat (limited to 'bfd/coff-i386.c')
-rw-r--r-- | bfd/coff-i386.c | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/bfd/coff-i386.c b/bfd/coff-i386.c index a9725c4..1b1a815 100644 --- a/bfd/coff-i386.c +++ b/bfd/coff-i386.c @@ -139,41 +139,41 @@ coff_i386_reloc (bfd *abfd, #define DOIT(x) \ x = ((x & ~howto->dst_mask) | (((x & howto->src_mask) + diff) & 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) + { + case 0: + { + char x = bfd_get_8 (abfd, addr); + DOIT (x); + bfd_put_8 (abfd, x, addr); + } + break; - switch (howto->size) + case 1: { - case 0: - { - char x = bfd_get_8 (abfd, addr); - DOIT (x); - bfd_put_8 (abfd, x, addr); - } - break; - - case 1: - { - short x = bfd_get_16 (abfd, addr); - DOIT (x); - bfd_put_16 (abfd, (bfd_vma) x, addr); - } - break; - - case 2: - { - long x = bfd_get_32 (abfd, addr); - DOIT (x); - bfd_put_32 (abfd, (bfd_vma) x, addr); - } - break; - - default: - abort (); + short x = bfd_get_16 (abfd, addr); + DOIT (x); + bfd_put_16 (abfd, (bfd_vma) x, addr); } - } + break; + + case 2: + { + long x = bfd_get_32 (abfd, addr); + 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; |