2007-07-25 Michael Snyder * coffgen.c (fixup_symbol_value): Guard against null; bfd_is_com_section will dereference the section pointer. Index: coffgen.c =================================================================== RCS file: /cvs/src/src/bfd/coffgen.c,v retrieving revision 1.59 diff -p -r1.59 coffgen.c *** coffgen.c 12 Jul 2007 07:16:40 -0000 1.59 --- coffgen.c 26 Jul 2007 01:45:25 -0000 *************** fixup_symbol_value (bfd *abfd, *** 562,568 **** struct internal_syment *syment) { /* Normalize the symbol flags. */ ! if (bfd_is_com_section (coff_symbol_ptr->symbol.section)) { /* A common symbol is undefined with a value. */ syment->n_scnum = N_UNDEF; --- 567,574 ---- struct internal_syment *syment) { /* Normalize the symbol flags. */ ! if (coff_symbol_ptr->symbol.section ! && bfd_is_com_section (coff_symbol_ptr->symbol.section)) { /* A common symbol is undefined with a value. */ syment->n_scnum = N_UNDEF;