Revision of previous delta using bfd_vma cast instead of 1L.
authorNick Clifton <nickc@redhat.com>
Mon, 20 Aug 2007 13:23:41 +0000 (13:23 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 20 Aug 2007 13:23:41 +0000 (13:23 +0000)
bfd/elflink.c

index 6059ab1140883cb493780eea5e1df13e984d540a..0f13faa9e01819956ddb7db852b4619c013c1701 100644 (file)
@@ -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)~((1L << s->alignment_power) - 1L);
+      offset &= ~(bfd_vma) 0 << s->alignment_power;
       s->output_offset = offset;
       sections[n]->offset = offset;
       offset += sections[n]->size;