mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 07:08:01 +08:00
* read.c (s_func): Prepend `leading char' by default.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
Tue Jun 2 09:25:34 1998 Doug Evans <devans@canuck.cygnus.com>
|
||||||
|
|
||||||
|
* read.c (s_func): Prepend `leading char' by default.
|
||||||
|
|
||||||
start-sanitize-r5900
|
start-sanitize-r5900
|
||||||
Mon Jun 1 17:04:56 1998 Jeffrey A Law (law@cygnus.com)
|
Mon Jun 1 17:04:56 1998 Jeffrey A Law (law@cygnus.com)
|
||||||
|
|
||||||
|
10
gas/read.c
10
gas/read.c
@ -4960,7 +4960,15 @@ s_func (end_p)
|
|||||||
SKIP_WHITESPACE ();
|
SKIP_WHITESPACE ();
|
||||||
if (*input_line_pointer != ',')
|
if (*input_line_pointer != ',')
|
||||||
{
|
{
|
||||||
/* Missing entry point, use function's name. */
|
char leading_char = 0;
|
||||||
|
#ifdef BFD_ASSEMBLER
|
||||||
|
leading_char = bfd_get_symbol_leading_char (stdoutput);
|
||||||
|
#endif
|
||||||
|
/* Missing entry point, use function's name with the leading
|
||||||
|
char prepended. */
|
||||||
|
if (leading_char)
|
||||||
|
asprintf (&label, "%c%s", leading_char, name);
|
||||||
|
else
|
||||||
label = name;
|
label = name;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user