[binutils-gdb] gas: improve reproducibility for stabs debugging data format
Nick Clifton
nickc@sourceware.org
Mon Nov 9 15:40:18 GMT 2020
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0541201782c006c09d029d18a45c6e743cfea906
commit 0541201782c006c09d029d18a45c6e743cfea906
Author: Denys Zagorui <dzagorui@cisco.com>
Date: Mon Nov 9 15:39:10 2020 +0000
gas: improve reproducibility for stabs debugging data format
* config/obj-elf (obj_elf_init_stab_section): Improve
reproducibility for stabs debugging data format
Diff:
---
gas/ChangeLog | 5 +++++
gas/config/obj-elf.c | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/gas/ChangeLog b/gas/ChangeLog
index d0ed87a345b..11f17d41457 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c
index 93eb81e98a4..7aed8129bc4 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
More information about the Binutils-cvs
mailing list