* ecoff.c (ecoff_set_symbol_info): Set udata.i to 0, not NULL.
This commit is contained in:
parent
d298568482
commit
a56f23aeb9
|
@ -1,3 +1,7 @@
|
||||||
|
Mon Oct 24 15:33:16 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
|
||||||
|
|
||||||
|
* ecoff.c (ecoff_set_symbol_info): Set udata.i to 0, not NULL.
|
||||||
|
|
||||||
Fri Oct 21 16:43:13 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
|
Fri Oct 21 16:43:13 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
|
||||||
|
|
||||||
* libaout.h (machine_type): added M_68K_NETBSD and M_SPARC_NETBSD.
|
* libaout.h (machine_type): added M_68K_NETBSD and M_SPARC_NETBSD.
|
||||||
|
|
11
bfd/ecoff.c
11
bfd/ecoff.c
|
@ -861,7 +861,7 @@ ecoff_set_symbol_info (abfd, ecoff_sym, asym, ext, indirect_ptr_ptr)
|
||||||
asym->the_bfd = abfd;
|
asym->the_bfd = abfd;
|
||||||
asym->value = ecoff_sym->value;
|
asym->value = ecoff_sym->value;
|
||||||
asym->section = &bfd_debug_section;
|
asym->section = &bfd_debug_section;
|
||||||
asym->udata = NULL;
|
asym->udata.i = 0;
|
||||||
|
|
||||||
/* An indirect symbol requires two consecutive stabs symbols. */
|
/* An indirect symbol requires two consecutive stabs symbols. */
|
||||||
if (*indirect_ptr_ptr != (asymbol *) NULL)
|
if (*indirect_ptr_ptr != (asymbol *) NULL)
|
||||||
|
@ -920,11 +920,12 @@ ecoff_set_symbol_info (abfd, ecoff_sym, asym, ext, indirect_ptr_ptr)
|
||||||
/* Normally, a local stProc symbol will have a corresponding
|
/* Normally, a local stProc symbol will have a corresponding
|
||||||
external symbol. We mark the local symbol as a debugging
|
external symbol. We mark the local symbol as a debugging
|
||||||
symbol, in order to prevent nm from printing both out.
|
symbol, in order to prevent nm from printing both out.
|
||||||
Similarly, we mark stLabel fields as debugging symbols. In
|
Similarly, we mark stLabel and stabs symbols as debugging
|
||||||
both cases, we do want to set the value correctly based on
|
symbols. In both cases, we do want to set the value
|
||||||
the symbol class. */
|
correctly based on the symbol class. */
|
||||||
if (ecoff_sym->st == stProc
|
if (ecoff_sym->st == stProc
|
||||||
|| ecoff_sym->st == stLabel)
|
|| ecoff_sym->st == stLabel
|
||||||
|
|| ECOFF_IS_STAB (ecoff_sym))
|
||||||
asym->flags |= BSF_DEBUGGING;
|
asym->flags |= BSF_DEBUGGING;
|
||||||
}
|
}
|
||||||
switch (ecoff_sym->sc)
|
switch (ecoff_sym->sc)
|
||||||
|
|
Loading…
Reference in New Issue