diff options
author | Alan Modra <amodra@gmail.com> | 2014-11-20 21:07:58 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2014-11-20 21:38:27 +1030 |
commit | 711833262c7a413b10a32f01153454bc5a53a5a6 (patch) | |
tree | 3cc245f1b8c7efb8884ec3a4f3717f128a1d3c30 /bfd | |
parent | aece7befdbdbe1d396dbc0a1b6b0b08b12774c9d (diff) | |
download | binutils-711833262c7a413b10a32f01153454bc5a53a5a6.tar.gz binutils-711833262c7a413b10a32f01153454bc5a53a5a6.tar.bz2 binutils-711833262c7a413b10a32f01153454bc5a53a5a6.zip |
ppc476 workaround sizing
* elf32-ppc.c (ppc_elf_relax_section): Correct ppc476 workaround
alignment calculation.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf32-ppc.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 8ac4034d549..bbfb46c1c39 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,10 @@ 2014-11-20 Alan Modra <amodra@gmail.com> + * elf32-ppc.c (ppc_elf_relax_section): Correct ppc476 workaround + alignment calculation. + +2014-11-20 Alan Modra <amodra@gmail.com> + * elf64-ppc.c (ppc64_elf_size_stubs): Add __go_go to thread_starters. 2014-11-18 Igor Zamyatin <igor.zamyatin@intel.com> diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index 04c2d6ad60b..b4d20753cf7 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -7174,7 +7174,7 @@ ppc_elf_relax_section (bfd *abfd, /* Keep space aligned, to ensure the patch code itself does not cross a page. Don't decrease size calculated on a previous pass as otherwise we might never settle on a layout. */ - newsize = 15 - (end_addr & 15); + newsize = 15 - ((end_addr - 1) & 15); newsize += crossings * 16; if (relax_info->workaround_size < newsize) { |