mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 12:23:31 +08:00
* config/obj-elf.c (elf_generate_asm_lineno): New function.
(elf_process_stab): New function. (elf_format_ops): Always use them as generate_asm_lineno, process_stab members.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2010-11-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||||
|
|
||||||
|
* config/obj-elf.c (elf_generate_asm_lineno): New function.
|
||||||
|
(elf_process_stab): New function.
|
||||||
|
(elf_format_ops): Always use them as generate_asm_lineno,
|
||||||
|
process_stab members.
|
||||||
|
|
||||||
2010-11-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
|
2010-11-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
|
||||||
|
|
||||||
PR gas/12198
|
PR gas/12198
|
||||||
|
@ -2388,6 +2388,29 @@ sco_id (void)
|
|||||||
|
|
||||||
#endif /* SCO_ELF */
|
#endif /* SCO_ELF */
|
||||||
|
|
||||||
|
static void
|
||||||
|
elf_generate_asm_lineno (void)
|
||||||
|
{
|
||||||
|
#ifdef NEED_ECOFF_DEBUG
|
||||||
|
if (ECOFF_DEBUGGING)
|
||||||
|
ecoff_generate_asm_lineno ();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
elf_process_stab (segT sec,
|
||||||
|
int what,
|
||||||
|
const char *string,
|
||||||
|
int type,
|
||||||
|
int other,
|
||||||
|
int desc)
|
||||||
|
{
|
||||||
|
#ifdef NEED_ECOFF_DEBUG
|
||||||
|
if (ECOFF_DEBUGGING)
|
||||||
|
ecoff_stab (sec, what, string, type, other, desc);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
elf_separate_stab_sections (void)
|
elf_separate_stab_sections (void)
|
||||||
{
|
{
|
||||||
@ -2428,13 +2451,8 @@ const struct format_ops elf_format_ops =
|
|||||||
0, /* s_get_type */
|
0, /* s_get_type */
|
||||||
0, /* s_set_type */
|
0, /* s_set_type */
|
||||||
elf_copy_symbol_attributes,
|
elf_copy_symbol_attributes,
|
||||||
#ifdef NEED_ECOFF_DEBUG
|
elf_generate_asm_lineno,
|
||||||
ecoff_generate_asm_lineno,
|
elf_process_stab,
|
||||||
ecoff_stab,
|
|
||||||
#else
|
|
||||||
0, /* generate_asm_lineno */
|
|
||||||
0, /* process_stab */
|
|
||||||
#endif
|
|
||||||
elf_separate_stab_sections,
|
elf_separate_stab_sections,
|
||||||
elf_init_stab_section,
|
elf_init_stab_section,
|
||||||
elf_sec_sym_ok_for_reloc,
|
elf_sec_sym_ok_for_reloc,
|
||||||
|
Reference in New Issue
Block a user