From 75ea27361921613b07803462ad3fd9f70196bea4 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 20 Aug 2007 08:26:35 +0000 Subject: [PATCH] * elflink.c (elf_fixup_link_order): Rewrite conversion of s->alignment_power into an offset mask in order to avoid a gcc error message. --- bfd/ChangeLog | 6 ++++++ bfd/elflink.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 73206a1f112..1ac3321489c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2007-08-20 Nick Clifton + + * elflink.c (elf_fixup_link_order): Rewrite conversion of + s->alignment_power into an offset mask in order to avoid a gcc + error message. + 2007-08-17 Jakub Jelinek * config.bfd: Handle sparcv*-*-linux-* the same as sparc-*-linux-*. 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; -- 2.30.2