aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-elf.c
diff options
context:
space:
mode:
authorDenys Zagorui <dzagorui@cisco.com>2020-11-09 15:39:10 +0000
committerNick Clifton <nickc@redhat.com>2020-11-09 15:39:10 +0000
commit0541201782c006c09d029d18a45c6e743cfea906 (patch)
treebae772b68c8afb78eca658a0ae7be8e66f1e1d92 /gas/config/obj-elf.c
parent5cbc0eb01a403419d7be753bfdbf1c638a92d759 (diff)
downloadgdb-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/obj-elf.c')
-rw-r--r--gas/config/obj-elf.c3
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