diff options
author | Alan Modra <amodra@gmail.com> | 2005-02-21 11:21:29 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-02-21 11:21:29 +0000 |
commit | fedf8d51e03543c5411fd27ae855d614d4bf3333 (patch) | |
tree | 7e67b1805392b260b6ec872d5d9e4f9406383026 /bfd | |
parent | 85e3476f965b07fb5c695d5e099a9b58a16b3609 (diff) | |
download | gdb-fedf8d51e03543c5411fd27ae855d614d4bf3333.zip gdb-fedf8d51e03543c5411fd27ae855d614d4bf3333.tar.gz gdb-fedf8d51e03543c5411fd27ae855d614d4bf3333.tar.bz2 |
* coffgen.c (bfd_coff_get_comdat_section): Check that
coff_section_data isn't NULL.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 13 | ||||
-rw-r--r-- | bfd/coffgen.c | 3 |
2 files changed, 9 insertions, 7 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 7729e55..b2c9452 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,10 @@ 2005-02-21 Alan Modra <amodra@bigpond.net.au> + * coffgen.c (bfd_coff_get_comdat_section): Check that + coff_section_data isn't NULL. + +2005-02-21 Alan Modra <amodra@bigpond.net.au> + * bfd-in.h (bfd_elf_bfd_from_remote_memory): Warning fix. * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Likewise. * coff-rs6000.c (xcoff_write_armap_big): Warning fixes. Remove @@ -43,14 +48,10 @@ * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. -2005-02-18 Alan Modra <amodra@bigpond.net.au> - - * coffgen.c (coff_write_symbols): Make "written" a bfd_vma. - 2005-02-17 Alexandre Oliva <aoliva@redhat.com> * elf32-frv.c (elf32_frv_relocate_section): Remove warning from - uninitialized check_segment[1] in TLSMOFF case. + uninitialized check_segment[1] in TLSMOFF case. Reported by Alan Modra. (elf32_frv_relocate_section): Improve errors and warnings. @@ -76,7 +77,7 @@ Skip toc reloc adjust if reloc_count is zero. 2005-02-15 Nigel Stephens <nigel@mips.com> - Maciej W. Rozycki <macro@mips.com> + Maciej W. Rozycki <macro@mips.com> * elf32-mips.c (elf_mips16_howto_table_rel): New array for MIPS16 reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16 relocs and diff --git a/bfd/coffgen.c b/bfd/coffgen.c index 4e76b2f..426721a 100644 --- a/bfd/coffgen.c +++ b/bfd/coffgen.c @@ -2427,7 +2427,8 @@ bfd_coff_set_symbol_class (abfd, symbol, class) struct coff_comdat_info * bfd_coff_get_comdat_section (bfd *abfd, struct bfd_section *sec) { - if (bfd_get_flavour (abfd) == bfd_target_coff_flavour) + if (bfd_get_flavour (abfd) == bfd_target_coff_flavour + && coff_section_data (abfd, sec) != NULL) return coff_section_data (abfd, sec)->comdat; else return NULL; |