diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2001-08-24 20:10:25 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2001-08-24 20:10:25 +0000 |
commit | b0f35f365d39066062ec31eea2f62324b31b2e52 (patch) | |
tree | 73de54e2a529302ba054e4fad2c930759a5e95f3 /bfd/elf.c | |
parent | 34f63668bfffb0bcdf86470a79b809d11335c1a2 (diff) | |
download | gdb-b0f35f365d39066062ec31eea2f62324b31b2e52.zip gdb-b0f35f365d39066062ec31eea2f62324b31b2e52.tar.gz gdb-b0f35f365d39066062ec31eea2f62324b31b2e52.tar.bz2 |
2001-08-24 H.J. Lu <hjl@gnu.org>
* elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
hash structure.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -571,15 +571,10 @@ _bfd_elf_merge_sections (abfd, info) bfd *abfd; struct bfd_link_info *info; { - struct elf_link_hash_table * hash_table; - - hash_table = elf_hash_table (info); - - if (hash_table == NULL) + if (!is_elf_hash_table (info)) return false; - - if (hash_table->merge_info) - _bfd_merge_sections (abfd, hash_table->merge_info); + if (elf_hash_table (info)->merge_info) + _bfd_merge_sections (abfd, elf_hash_table (info)->merge_info); return true; } |