summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-06 18:27:03 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-06 18:27:03 +0000
commitf2c87f458d130c13267e531a5c8ba15608ecc549 (patch)
treeae7ea756d3a6bfe836802e3efe727e21481c84d9 /bfd
parent53a1703b4a127c4f21f02655fadca40b09823d0e (diff)
downloadbinutils-redhat-f2c87f458d130c13267e531a5c8ba15608ecc549.tar.gz
2011-03-06 Michael Snyder <msnyder@vmware.com>
* elf64-x86-64.c (elf_x86_64_relocate_section): Document that case statement falls through intentionally.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog3
-rw-r--r--bfd/elf64-x86-64.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 39a485b477..63cd5f325e 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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>
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index ad2a1f34a0..c26c40bb19 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -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: