summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-08-20 08:27:51 +0000
committerNick Clifton <nickc@redhat.com>2007-08-20 08:27:51 +0000
commit8029f6505b6a5d61749d9dd713e7649110ed4481 (patch)
treec3cd958dc1689cf165b792502518956d7357c165
parent57ba6c3660de650ce2876b4ed5ac9d18966783f5 (diff)
downloadbinutils-gdb-8029f6505b6a5d61749d9dd713e7649110ed4481.tar.gz
* elflink.c (elf_fixup_link_order): Rewrite conversion of s->alignment_power
into an offset mask in order to avoid a gcc error message.
-rw-r--r--bfd/elflink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 6cfb8b96092..6059ab11408 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;