Module Name: src
Committed By: joerg
Date: Fri Nov 4 00:19:32 UTC 2016
Modified Files:
src/external/gpl3/binutils/dist/bfd: elf64-ppc.c
Log Message:
Tail calls can use the PLT without a nop after the branch. Since the
callee won't return to the next instruction anyway, it wouldn't work
anyway.
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/binutils/dist/bfd/elf64-ppc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/binutils/dist/bfd/elf64-ppc.c
diff -u src/external/gpl3/binutils/dist/bfd/elf64-ppc.c:1.10 src/external/gpl3/binutils/dist/bfd/elf64-ppc.c:1.11
--- src/external/gpl3/binutils/dist/bfd/elf64-ppc.c:1.10 Thu Nov 3 01:22:59 2016
+++ src/external/gpl3/binutils/dist/bfd/elf64-ppc.c Fri Nov 4 00:19:32 2016
@@ -14069,6 +14069,11 @@ ppc64_elf_relocate_section (bfd *output_
can_plt_call = TRUE;
}
}
+ else
+ {
+ /* Tail calls don't need to worry about restoring TOC. */
+ can_plt_call = TRUE;
+ }
}
if (!can_plt_call && h != NULL)