aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-08-20 13:23:41 +0000
committerNick Clifton <nickc@redhat.com>2007-08-20 13:23:41 +0000
commit461686a32337125d51ec25e752fa158448be4005 (patch)
tree74ce2f0429dcb522de3ff73ae33ca7d147831315 /bfd/elflink.c
parent19ec0de70a3b2344187a890dac3f46662213e4b6 (diff)
downloadgdb-461686a32337125d51ec25e752fa158448be4005.zip
gdb-461686a32337125d51ec25e752fa158448be4005.tar.gz
gdb-461686a32337125d51ec25e752fa158448be4005.tar.bz2
Revision of previous delta using bfd_vma cast instead of 1L.
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 6059ab1..0f13faa 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)~((1L << s->alignment_power) - 1L);
+ offset &= ~(bfd_vma) 0 << s->alignment_power;
s->output_offset = offset;
sections[n]->offset = offset;
offset += sections[n]->size;