mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 08:24:05 +08:00
* config/obj-coffbfd.c (obj_coff_init_stab_section): Append "str"
to stab section name to get the stab string section name. Pass the full name of the stab string section to get_stab_string_offset. * config/obj-elf.c (obj_elf_init_stab_section): Likewise.
This commit is contained in:
@ -2664,12 +2664,16 @@ obj_coff_init_stab_section (seg)
|
|||||||
{
|
{
|
||||||
char *file;
|
char *file;
|
||||||
char *p;
|
char *p;
|
||||||
|
char *stabstr_name;
|
||||||
unsigned int stroff;
|
unsigned int stroff;
|
||||||
|
|
||||||
/* Make space for this first symbol. */
|
/* Make space for this first symbol. */
|
||||||
p = frag_more (12);
|
p = frag_more (12);
|
||||||
as_where (&file, (unsigned int *) NULL);
|
as_where (&file, (unsigned int *) NULL);
|
||||||
stroff = get_stab_string_offset (file, segment_info[seg].scnhdr.s_name);
|
stabstr_name = alloca (strlen (segment_info[seg].scnhdr.s_name) + 4);
|
||||||
|
strcpy (stabstr_name, segment_info[seg].scnhdr.s_name);
|
||||||
|
strcat (stabstr_name, "str");
|
||||||
|
stroff = get_stab_string_offset (file, stabstr_name);
|
||||||
know (stroff == 1);
|
know (stroff == 1);
|
||||||
md_number_to_chars (p, stroff, 4);
|
md_number_to_chars (p, stroff, 4);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user