* 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:
parent
eed5eeab82
commit
b89b288031
1 changed files with 5 additions and 1 deletions
|
@ -2664,12 +2664,16 @@ obj_coff_init_stab_section (seg)
|
|||
{
|
||||
char *file;
|
||||
char *p;
|
||||
char *stabstr_name;
|
||||
unsigned int stroff;
|
||||
|
||||
/* Make space for this first symbol. */
|
||||
p = frag_more (12);
|
||||
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);
|
||||
md_number_to_chars (p, stroff, 4);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue