diff options
author | Nick Clifton <nickc@redhat.com> | 2000-08-24 17:41:40 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2000-08-24 17:41:40 +0000 |
commit | 724982f606973928500c3634ed832b52ac77ca3d (patch) | |
tree | 535376a70be595a20e51b0359ac9a2579f803644 /bfd/elflink.h | |
parent | 5c90f90dfb2d284a5dec3bde28d19d6c304416d7 (diff) | |
download | gdb-724982f606973928500c3634ed832b52ac77ca3d.zip gdb-724982f606973928500c3634ed832b52ac77ca3d.tar.gz gdb-724982f606973928500c3634ed832b52ac77ca3d.tar.bz2 |
Allow common symbols to have an alignment of 1 if explicitly requested, and
not overridden by other definitions.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r-- | bfd/elflink.h | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |