mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
* archive.c (_bfd_get_elt_at_filepos): Don't release n_nfd.
* elflink.c (elf_link_add_object_symbols): Delete redundant code.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2011-04-20 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* archive.c (_bfd_get_elt_at_filepos): Don't release n_nfd.
|
||||||
|
* elflink.c (elf_link_add_object_symbols): Delete redundant code.
|
||||||
|
|
||||||
2011-04-20 Alan Modra <amodra@gmail.com>
|
2011-04-20 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
PR ld/12365
|
PR ld/12365
|
||||||
|
@ -661,10 +661,6 @@ _bfd_get_elt_at_filepos (bfd *archive, file_ptr filepos)
|
|||||||
if (_bfd_add_bfd_to_archive_cache (archive, filepos, n_nfd))
|
if (_bfd_add_bfd_to_archive_cache (archive, filepos, n_nfd))
|
||||||
return n_nfd;
|
return n_nfd;
|
||||||
|
|
||||||
/* Huh? */
|
|
||||||
/* FIXME: n_nfd isn't allocated in the archive's memory pool.
|
|
||||||
If we reach this point, I think bfd_release will abort. */
|
|
||||||
bfd_release (archive, n_nfd);
|
|
||||||
bfd_release (archive, new_areldata);
|
bfd_release (archive, new_areldata);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -4237,10 +4237,7 @@ error_free_dyn:
|
|||||||
We need to get the alignment from the section. */
|
We need to get the alignment from the section. */
|
||||||
align = new_sec->alignment_power;
|
align = new_sec->alignment_power;
|
||||||
}
|
}
|
||||||
if (align > old_alignment
|
if (align > old_alignment)
|
||||||
/* Permit an alignment power of zero if an alignment of one
|
|
||||||
is specified and no other alignments have been specified. */
|
|
||||||
|| (isym->st_value == 1 && old_alignment == 0))
|
|
||||||
h->root.u.c.p->alignment_power = align;
|
h->root.u.c.p->alignment_power = align;
|
||||||
else
|
else
|
||||||
h->root.u.c.p->alignment_power = old_alignment;
|
h->root.u.c.p->alignment_power = old_alignment;
|
||||||
|
Reference in New Issue
Block a user