diff options
author | Denys Zagorui <dzagorui@cisco.com> | 2020-11-09 15:39:10 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2020-11-09 15:39:10 +0000 |
commit | 0541201782c006c09d029d18a45c6e743cfea906 (patch) | |
tree | bae772b68c8afb78eca658a0ae7be8e66f1e1d92 /gas/config | |
parent | 5cbc0eb01a403419d7be753bfdbf1c638a92d759 (diff) | |
download | gdb-0541201782c006c09d029d18a45c6e743cfea906.zip gdb-0541201782c006c09d029d18a45c6e743cfea906.tar.gz gdb-0541201782c006c09d029d18a45c6e743cfea906.tar.bz2 |
gas: improve reproducibility for stabs debugging data format
* config/obj-elf (obj_elf_init_stab_section): Improve
reproducibility for stabs debugging data format
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/obj-elf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index 93eb81e..7aed812 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -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 |