* elf.c (_bfd_elf_map_sections_to_segments): Work around buggy
GCC 3.4.x warning.
This commit is contained in:
parent
ad756e3f9e
commit
55b581a678
|
@ -1,3 +1,8 @@
|
||||||
|
2007-08-01 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* elf.c (_bfd_elf_map_sections_to_segments): Work around buggy
|
||||||
|
GCC 3.4.x warning.
|
||||||
|
|
||||||
2007-08-01 Alan Modra <amodra@bigpond.net.au>
|
2007-08-01 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* aoutx.h (swap_ext_reloc_in): Set howto to NULL for unknown
|
* aoutx.h (swap_ext_reloc_in): Set howto to NULL for unknown
|
||||||
|
|
|
@ -3732,13 +3732,16 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info)
|
||||||
amt = sizeof (struct elf_segment_map);
|
amt = sizeof (struct elf_segment_map);
|
||||||
if (s->alignment_power == 2)
|
if (s->alignment_power == 2)
|
||||||
for (s2 = s; s2->next != NULL; s2 = s2->next)
|
for (s2 = s; s2->next != NULL; s2 = s2->next)
|
||||||
|
{
|
||||||
if (s2->next->alignment_power == 2
|
if (s2->next->alignment_power == 2
|
||||||
&& (s2->next->flags & SEC_LOAD) != 0
|
&& (s2->next->flags & SEC_LOAD) != 0
|
||||||
&& CONST_STRNEQ (s2->next->name, ".note")
|
&& CONST_STRNEQ (s2->next->name, ".note")
|
||||||
&& align_power (s2->vma + s2->size, 2) == s2->next->vma)
|
&& align_power (s2->vma + s2->size, 2)
|
||||||
|
== s2->next->vma)
|
||||||
count++;
|
count++;
|
||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
amt += (count - 1) * sizeof (asection *);
|
amt += (count - 1) * sizeof (asection *);
|
||||||
m = bfd_zalloc (abfd, amt);
|
m = bfd_zalloc (abfd, amt);
|
||||||
if (m == NULL)
|
if (m == NULL)
|
||||||
|
|
Loading…
Reference in New Issue