* merge.c (struct sec_merge_hash_entry): Add alignment field.
commit92ba11fc11a9080bc4191d5a80ebcc98d582cf91
authorJakub Jelinek <jakub@redhat.com>
Tue, 24 Apr 2001 17:55:57 +0000 (24 17:55 +0000)
committerJakub Jelinek <jakub@redhat.com>
Tue, 24 Apr 2001 17:55:57 +0000 (24 17:55 +0000)
treef370df9ec111dc4c3887c36d6af8c67b08e2d4bd
parent337f604bf3b5bd70407144fa06a92b8c1965a804
* 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