2011-03-06 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Sun, 6 Mar 2011 18:27:03 +0000 (18:27 +0000)
committerMichael Snyder <msnyder@vmware.com>
Sun, 6 Mar 2011 18:27:03 +0000 (18:27 +0000)
* elf64-x86-64.c (elf_x86_64_relocate_section): Document
that case statement falls through intentionally.

bfd/ChangeLog
bfd/elf64-x86-64.c

index 39a485b..63cd5f3 100644 (file)
@@ -1,5 +1,8 @@
 2011-03-06  Michael Snyder  <msnyder@vmware.com>
 
+       * elf64-x86-64.c (elf_x86_64_relocate_section): Document
+       that case statement falls through intentionally.
+
        * elf32-i386.c (elf_i386_relocate_section): Document fall through.
 
 2011-03-04  Alan Modra  <amodra@gmail.com>
index ad2a1f3..c26c40b 100644 (file)
@@ -2887,6 +2887,7 @@ elf_x86_64_relocate_section (bfd *output_bfd,
            case R_X86_64_32:
              if (ABI_64_P (output_bfd))
                goto do_relocation;
+             /* FALLTHROUGH */
            case R_X86_64_64: 
              if (rel->r_addend != 0)
                {
@@ -2950,7 +2951,7 @@ elf_x86_64_relocate_section (bfd *output_bfd,
                     internal symbol, we have updated addend.  */
                  continue;
                }
-
+             /* FALLTHROUGH */
            case R_X86_64_PC32:
            case R_X86_64_PC64:
            case R_X86_64_PLT32: