summaryrefslogtreecommitdiff
path: root/bfd/coff-rs6000.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2002-08-06 08:59:34 +0000
committerAlan Modra <amodra@bigpond.net.au>2002-08-06 08:59:34 +0000
commitde08bcd54e0b33337e74a143165e3fa21ea5b4a5 (patch)
treed0cc5d335001fac79a99309dba5be24bce1f6035 /bfd/coff-rs6000.c
parentfcd705f77169a4091383af3e26624ca6ea3a0bc9 (diff)
downloadgdb-de08bcd54e0b33337e74a143165e3fa21ea5b4a5.tar.gz
* 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/coff-rs6000.c')
-rw-r--r--bfd/coff-rs6000.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c
index bf4ebc15aa7..235b6a1ed23 100644
--- a/bfd/coff-rs6000.c
+++ b/bfd/coff-rs6000.c
@@ -3708,7 +3708,7 @@ xcoff_generate_rtinit (abfd, init, fini, rtld)
0x0040 + initsz fini name */
data_buffer_size = 0x0040 + 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)