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:37:02 +1030 |
commit | 1e269e9b8fb2acf403bfa09486cdc5d496bbf27b (patch) | |
tree | 6ca63bf11caa6f3db8ca68041d9b00876e0e7bbb /bfd/elf32-ppc.c | |
parent | 005e2509a167c05719df3a3edd966865110a5052 (diff) | |
download | gdb-1e269e9b8fb2acf403bfa09486cdc5d496bbf27b.zip gdb-1e269e9b8fb2acf403bfa09486cdc5d496bbf27b.tar.gz gdb-1e269e9b8fb2acf403bfa09486cdc5d496bbf27b.tar.bz2 |
ppc476 workaround sizing
* elf32-ppc.c (ppc_elf_relax_section): Correct ppc476 workaround
alignment calculation.
Diffstat (limited to 'bfd/elf32-ppc.c')
-rw-r--r-- | bfd/elf32-ppc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index 04c2d6a..b4d2075 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) { |