diff options
author | Jeff Law <law@redhat.com> | 1993-10-30 07:15:46 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1993-10-30 07:15:46 +0000 |
commit | b89b28803198c099c2abf51aad992c7831603a69 (patch) | |
tree | 605516238163aa07621b6724b1b9d8603181e3e9 /gas | |
parent | eed5eeab82f30c1ac11c2cfc90093364de995681 (diff) | |
download | gdb-b89b28803198c099c2abf51aad992c7831603a69.zip gdb-b89b28803198c099c2abf51aad992c7831603a69.tar.gz gdb-b89b28803198c099c2abf51aad992c7831603a69.tar.bz2 |
* 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.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/config/obj-coffbfd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gas/config/obj-coffbfd.c b/gas/config/obj-coffbfd.c index f88dbb5..89dbbbe 100644 --- a/gas/config/obj-coffbfd.c +++ b/gas/config/obj-coffbfd.c @@ -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); } |