diff options
author | Alan Modra <amodra@gmail.com> | 2024-12-17 14:29:57 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2024-12-17 14:32:46 +1030 |
commit | a030e43267f37681961866760156d74b4e9e30d6 (patch) | |
tree | e408020739732229ba06390e7ad6be36c569032a | |
parent | e0e0ff9249b7f3760412145195b3205a81e9d765 (diff) | |
download | binutils-a030e43267f37681961866760156d74b4e9e30d6.zip binutils-a030e43267f37681961866760156d74b4e9e30d6.tar.gz binutils-a030e43267f37681961866760156d74b4e9e30d6.tar.bz2 |
Re: score and mmix target_id
elflink.c checks elf_object_id(ibfd) == elf_hash_table_id(hash_table)
in a number of places. Make them match.
-rw-r--r-- | bfd/elf32-score.c | 2 | ||||
-rw-r--r-- | bfd/elflink.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-score.c b/bfd/elf32-score.c index 03ea71d..76e8761 100644 --- a/bfd/elf32-score.c +++ b/bfd/elf32-score.c @@ -4365,7 +4365,7 @@ elf32_score_link_hash_table_create (bfd *abfd) if (!_bfd_elf_link_hash_table_init (ret, abfd, score_elf_link_hash_newfunc, sizeof (struct score_elf_link_hash_entry), - GENERIC_ELF_DATA)) + SCORE_ELF_DATA)) { free (ret); return NULL; diff --git a/bfd/elflink.c b/bfd/elflink.c index ef159da..2b9e8b9 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -8354,7 +8354,7 @@ _bfd_elf_link_hash_table_create (bfd *abfd) if (! _bfd_elf_link_hash_table_init (ret, abfd, _bfd_elf_link_hash_newfunc, sizeof (struct elf_link_hash_entry), - GENERIC_ELF_DATA)) + get_elf_backend_data (abfd)->target_id)) { free (ret); return NULL; |