From: Nick Clifton Date: Thu, 24 Aug 2000 17:41:40 +0000 (+0000) Subject: Allow common symbols to have an alignment of 1 if explicitly requested, and X-Git-Tag: newlib-1_9_0~1103 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=724982f606973928500c3634ed832b52ac77ca3d;p=external%2Fbinutils.git Allow common symbols to have an alignment of 1 if explicitly requested, and not overridden by other definitions. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9808b41..e0ba4d1 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2000-08-24 Denis Chertykov & Nick Clifton + + * elflink.h (elf_link_add_object_symbols): Allow common + symbols to have an alignment of 1 if explicitly requested, and + not overridden by other definitions. + 2000-08-22 Doug Kwan * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo. diff --git a/bfd/elflink.h b/bfd/elflink.h index cd55664..a808673 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -1615,7 +1615,10 @@ elf_link_add_object_symbols (abfd, info) unsigned int align; align = bfd_log2 (sym.st_value); - 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. */ + || (sym.st_value == 1 && old_alignment == 0)) h->root.u.c.p->alignment_power = align; }