]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
PowerPC64, don't relocate nops
authorAlan Modra <amodra@gmail.com>
Fri, 2 Feb 2018 06:25:21 +0000 (16:55 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 2 Feb 2018 12:16:40 +0000 (22:46 +1030)
commitd830549dba59f4e11412fd6dc18b7b1d4c6cf557
treec71c424578dca6fabb7c6e3ac6c99819025ad3c3
parent59498c305e6f1db2a1ed8d44cb58f0d24ec092fe
PowerPC64, don't relocate nops

This fixes a "bug" in that nops emitted as part of code optimization
were being relocated.  As it happens the relocation value was always
zero so the nop wasn't changed.  Whew!  I've also moved the use of
"howto" later since I was caught out in some recent code changes with
the howto not matching r_type.

* elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops
emitted for toc sequence optimization.  Set and use "howto" later.
bfd/ChangeLog
bfd/elf64-ppc.c