Don't core dump if no output section available for a symbol
This commit is contained in:
parent
3e6e09c068
commit
e7b4046cbf
|
@ -2,7 +2,8 @@ Thu Feb 27 09:24:56 1992 Steve Chamberlain (sac at thepub.cygnus.com)
|
|||
|
||||
* aoutx.h (translate_from_native_sym_flags): when creating an
|
||||
alias symbol, fill in the section as undefined, rather than
|
||||
leaving it blank
|
||||
leaving it blank. If an output section can't be found for a
|
||||
symbol, then don't core dump.
|
||||
|
||||
Wed Feb 26 19:40:59 1992 Steve Chamberlain (sac at thepub.cygnus.com)
|
||||
|
||||
|
|
11
bfd/aoutx.h
11
bfd/aoutx.h
|
@ -951,9 +951,20 @@ DEFUN(translate_to_native_sym_flags,(sym_pointer, cache_ptr, abfd),
|
|||
sym_pointer->e_type[0] = (N_UNDF | N_EXT);
|
||||
}
|
||||
else {
|
||||
if (cache_ptr->section->output_section)
|
||||
{
|
||||
|
||||
bfd_error_vector.nonrepresentable_section(abfd,
|
||||
bfd_get_output_section(cache_ptr)->name);
|
||||
}
|
||||
else
|
||||
{
|
||||
bfd_error_vector.nonrepresentable_section(abfd,
|
||||
cache_ptr->section->name);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
/* Turn the symbol from section relative to absolute again */
|
||||
|
||||
value += cache_ptr->section->output_section->vma + cache_ptr->section->output_offset ;
|
||||
|
|
Loading…
Reference in New Issue