mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 05:47:26 +08:00
* coffgen.c (coff_fix_symbol_name): Don't try to set up file
auxent if there isn't one. (coff_write_symbols): If there is no file auxent, use SYMNMLEN rather than FILNMLEN as the maximum name length.
This commit is contained in:
@ -23,6 +23,11 @@ Fri Oct 6 12:24:47 1995 Michael Meissner <meissner@tiktok.cygnus.com>
|
|||||||
|
|
||||||
Fri Oct 6 12:04:02 1995 Ian Lance Taylor <ian@cygnus.com>
|
Fri Oct 6 12:04:02 1995 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* coffgen.c (coff_fix_symbol_name): Don't try to set up file
|
||||||
|
auxent if there isn't one.
|
||||||
|
(coff_write_symbols): If there is no file auxent, use SYMNMLEN
|
||||||
|
rather than FILNMLEN as the maximum name length.
|
||||||
|
|
||||||
* coffcode.h (bfd_coff_backend_data): Add new field
|
* coffcode.h (bfd_coff_backend_data): Add new field
|
||||||
_bfd_coff_print_aux.
|
_bfd_coff_print_aux.
|
||||||
(bfd_coff_print_aux): New static function.
|
(bfd_coff_print_aux): New static function.
|
||||||
|
@ -624,7 +624,8 @@ coff_fix_symbol_name (abfd, symbol, native, string_size_p,
|
|||||||
}
|
}
|
||||||
name_length = strlen (name);
|
name_length = strlen (name);
|
||||||
|
|
||||||
if (native->u.syment.n_sclass == C_FILE)
|
if (native->u.syment.n_sclass == C_FILE
|
||||||
|
&& native->u.syment.n_numaux > 0)
|
||||||
{
|
{
|
||||||
strncpy (native->u.syment._n._n_name, ".file", SYMNMLEN);
|
strncpy (native->u.syment._n._n_name, ".file", SYMNMLEN);
|
||||||
auxent = &(native + 1)->u.auxent;
|
auxent = &(native + 1)->u.auxent;
|
||||||
@ -652,7 +653,7 @@ coff_fix_symbol_name (abfd, symbol, native, string_size_p,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{ /* NOT A C_FILE SYMBOL */
|
{
|
||||||
if (name_length <= SYMNMLEN)
|
if (name_length <= SYMNMLEN)
|
||||||
{
|
{
|
||||||
/* This name will fit into the symbol neatly */
|
/* This name will fit into the symbol neatly */
|
||||||
@ -1024,7 +1025,8 @@ coff_write_symbols (abfd)
|
|||||||
Don't write it into the string table. */
|
Don't write it into the string table. */
|
||||||
maxlen = name_length;
|
maxlen = name_length;
|
||||||
}
|
}
|
||||||
else if (c_symbol->native->u.syment.n_sclass == C_FILE)
|
else if (c_symbol->native->u.syment.n_sclass == C_FILE
|
||||||
|
&& c_symbol->native->u.syment.n_numaux > 0)
|
||||||
maxlen = FILNMLEN;
|
maxlen = FILNMLEN;
|
||||||
else
|
else
|
||||||
maxlen = SYMNMLEN;
|
maxlen = SYMNMLEN;
|
||||||
|
Reference in New Issue
Block a user