aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff64-rs6000.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-08-06 08:59:34 +0000
committerAlan Modra <amodra@gmail.com>2002-08-06 08:59:34 +0000
commit2a52da5326b817573b36327cb3ddad0e7a26d78e (patch)
treeedf2b77720023e08f475c6bf257b494575c72cd9 /bfd/coff64-rs6000.c
parent8ea80f084388d7c76b38d587043f2d6935db90b2 (diff)
downloadgdb-2a52da5326b817573b36327cb3ddad0e7a26d78e.zip
gdb-2a52da5326b817573b36327cb3ddad0e7a26d78e.tar.gz
gdb-2a52da5326b817573b36327cb3ddad0e7a26d78e.tar.bz2
* libxcoff.h: Use PARAMS on function declarations.
* coff-rs6000.c (xcoff_generate_rtinit): Simplify size calc. * coff64-rs6000.c (xcoff64_generate_rtinit): Likewise.
Diffstat (limited to 'bfd/coff64-rs6000.c')
-rw-r--r--bfd/coff64-rs6000.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/coff64-rs6000.c b/bfd/coff64-rs6000.c
index c259d35..f26fe6d 100644
--- a/bfd/coff64-rs6000.c
+++ b/bfd/coff64-rs6000.c
@@ -2251,7 +2251,7 @@ xcoff64_generate_rtinit (abfd, init, fini, rtld)
0x0058 + initsz fini name */
data_buffer_size = 0x0058 + initsz + finisz;
- data_buffer_size += (data_buffer_size & 7) ? 8 - (data_buffer_size & 7) : 0;
+ data_buffer_size = (data_buffer_size + 7) &~ (bfd_size_type) 7;
data_buffer = NULL;
data_buffer = (bfd_byte *) bfd_zmalloc (data_buffer_size);
if (data_buffer == NULL)