* merge.c (struct sec_merge_hash_entry): Add alignment field.
authorJakub Jelinek <jakub@redhat.com>
Tue, 24 Apr 2001 17:55:57 +0000 (17:55 +0000)
committerJakub Jelinek <jakub@redhat.com>
Tue, 24 Apr 2001 17:55:57 +0000 (17:55 +0000)
commita531bbd206812ed3eed2fe0fdac8364b8be2e1cf
treea23479550df6c4ab285cae884eecfb4e73d5bf3e
parent851c18e0e958846e5b10c2254c693418f5ca3f8b
* merge.c (struct sec_merge_hash_entry): Add alignment field.
(struct sec_merge_hash): Remove alignment_power.
(sec_merge_hash_newfunc): Clear alignment.
(sec_merge_hash_lookup): Pass alignment as argument.
Use hashp->root.next, not hashp->next to walk the hash chain.
If a string already in the hashtable does not have required
alignment, create a new hashtable entry.
(sec_merge_init): Remove alignment_power argument.
(sec_merge_add): Add alignment argument.
(sec_merge_emit): Alignment is now a per-entity thing, not per
section.
(_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
for proper alignment.
Pass alignment information to sec_merge_add.
bfd/ChangeLog
bfd/merge.c