aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-08-20 08:26:35 +0000
committerNick Clifton <nickc@redhat.com>2007-08-20 08:26:35 +0000
commit75ea27361921613b07803462ad3fd9f70196bea4 (patch)
treeb105354dd2b4669630ab575fc46a1a6417a75233 /bfd/elflink.c
parent80a62b542ea40a6e8f1338e352a38311d4a24602 (diff)
downloadgdb-75ea27361921613b07803462ad3fd9f70196bea4.zip
gdb-75ea27361921613b07803462ad3fd9f70196bea4.tar.gz
gdb-75ea27361921613b07803462ad3fd9f70196bea4.tar.bz2
* elflink.c (elf_fixup_link_order): Rewrite conversion of s->alignment_power
into an offset mask in order to avoid a gcc error message.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 6cfb8b9..6059ab1 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -9965,7 +9965,7 @@ elf_fixup_link_order (bfd *abfd, asection *o)
for (n = 0; n < seen_linkorder; n++)
{
s = sections[n]->u.indirect.section;
- offset &= ~(bfd_vma)((1 << s->alignment_power) - 1);
+ offset &= (bfd_vma)~((1L << s->alignment_power) - 1L);
s->output_offset = offset;
sections[n]->offset = offset;
offset += sections[n]->size;