aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2011-04-20 07:00:46 +0000
committerAlan Modra <amodra@gmail.com>2011-04-20 07:00:46 +0000
commit595213d4408b3608441bb78fd5ee49efb5b8b97f (patch)
tree084ff76cc95b7c3688e18ec93ddd98c2a9a55ea5 /bfd/elflink.c
parent02d002477b60cff9f0f5abbd5fc27e2889b13421 (diff)
downloadgdb-595213d4408b3608441bb78fd5ee49efb5b8b97f.zip
gdb-595213d4408b3608441bb78fd5ee49efb5b8b97f.tar.gz
gdb-595213d4408b3608441bb78fd5ee49efb5b8b97f.tar.bz2
* archive.c (_bfd_get_elt_at_filepos): Don't release n_nfd.
* elflink.c (elf_link_add_object_symbols): Delete redundant code.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 110bb66..3c95b57 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -4237,10 +4237,7 @@ error_free_dyn:
We need to get the alignment from the section. */
align = new_sec->alignment_power;
}
- 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))
+ if (align > old_alignment)
h->root.u.c.p->alignment_power = align;
else
h->root.u.c.p->alignment_power = old_alignment;