gas: improve reproducibility for stabs debugging data format

* config/obj-elf (obj_elf_init_stab_section): Improve
	reproducibility for stabs debugging data format
This commit is contained in:
Denys Zagorui
2020-11-09 15:39:10 +00:00
committed by Nick Clifton
parent 5cbc0eb01a
commit 0541201782
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2020-11-09 Denys Zagorui <dzagorui@cisco.com>
* config/obj-elf (obj_elf_init_stab_section): Improve
reproducibility for stabs debugging data format
2020-11-09 Spencer E. Olson <olsonse@umich.edu>
* testsuite/gas/pru/misc.s: Add tests for lmbd (left-most bit

View File

@@ -2425,12 +2425,13 @@ obj_elf_init_stab_section (segT seg)
p = frag_more (12);
/* Zero it out. */
memset (p, 0, 12);
file = as_where (NULL);
file = remap_debug_filename (as_where (NULL));
stabstr_name = concat (segment_name (seg), "str", (char *) NULL);
stroff = get_stab_string_offset (file, stabstr_name, TRUE);
know (stroff == 1 || (stroff == 0 && file[0] == '\0'));
md_number_to_chars (p, stroff, 4);
seg_info (seg)->stabu.p = p;
xfree ((char *) file);
}
#endif