diff options
author | Nick Clifton <nickc@redhat.com> | 2007-08-20 08:27:51 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2007-08-20 08:27:51 +0000 |
commit | 8029f6505b6a5d61749d9dd713e7649110ed4481 (patch) | |
tree | c3cd958dc1689cf165b792502518956d7357c165 | |
parent | 57ba6c3660de650ce2876b4ed5ac9d18966783f5 (diff) | |
download | binutils-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.c | 2 |
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; |