aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-10-30 17:30:43 +1030
committerAlan Modra <amodra@gmail.com>2013-11-02 11:57:55 +1030
commit8b974ba3e8216b7f6659d2803444e0ddceaeded7 (patch)
tree3ce731dc47ca0ec349a2bb20994348cf3774fddd /binutils
parenteab88b547c358493cd81c5336fa9f296cc5a0483 (diff)
downloadgdb-8b974ba3e8216b7f6659d2803444e0ddceaeded7.zip
gdb-8b974ba3e8216b7f6659d2803444e0ddceaeded7.tar.gz
gdb-8b974ba3e8216b7f6659d2803444e0ddceaeded7.tar.bz2
Simplify ppc64 code setting toc_off.
Every function has a nominal toc pointer value, even if it isn't used, so set toc_off for every code section to the value used in that object file. The thinking here was that if a code section didn't use the toc it could use the previous object file's toc pointer value. It can, but doing so is only a gain if functions in that section are called mostly from previous objects sharing the same toc. We lose if the functions in question are called mostly from the current object or following objects, and it's a good bet they will probably mostly be called from the current object. * elf64-ppc.c (ppc64_elf_next_input_section): Always set toc_off to value for object file.
Diffstat (limited to 'binutils')
0 files changed, 0 insertions, 0 deletions