forked from Imagelibrary/binutils-gdb
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:
committed by
Nick Clifton
parent
5cbc0eb01a
commit
0541201782
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user