[binutils-gdb/binutils-2_35-branch] gas: Make sure to only add an md5 to a .file when requested.

Mark Wielaard mark@sourceware.org
Mon Sep 14 22:44:22 GMT 2020


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3a7d446f108f63e6d1a8cfa07d99e64f06547a6e

commit 3a7d446f108f63e6d1a8cfa07d99e64f06547a6e
Author: Mark Wielaard <mark@klomp.org>
Date:   Mon Sep 7 12:08:07 2020 +0100

    gas: Make sure to only add an md5 to a .file when requested.
    
            * dwarf2dbg.c (dwarf2_directive_filename): Initialize with_md5 to
            FALSE.
            * gas/testsuite/gas/elf/dwarf-5-file0.s: Add a random bignum.

Diff:
---
 gas/ChangeLog                         | 9 +++++++++
 gas/dwarf2dbg.c                       | 2 +-
 gas/testsuite/gas/elf/dwarf-5-file0.s | 2 +-
 3 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/gas/ChangeLog b/gas/ChangeLog
index fe31e5b74eb..d71d0387fd8 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,12 @@
+2020-09-14  Mark Wielaard  <mark@klomp.org>
+
+	Backport from mainline:
+	2020-08-28  Mark Wielaard  <mark@klomp.org>
+
+	* dwarf2dbg.c (dwarf2_directive_filename): Initialize with_md5 to
+	FALSE.
+	* gas/testsuite/gas/elf/dwarf-5-file0.s: Add a random bignum.
+
 2020-09-14  Mark Wielaard  <mark@klomp.org>
 
 	Backport from mainline:
diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c
index 50e4dd91fdd..cf15eda767b 100644
--- a/gas/dwarf2dbg.c
+++ b/gas/dwarf2dbg.c
@@ -1014,7 +1014,7 @@ dwarf2_emit_label (symbolS *label)
 char *
 dwarf2_directive_filename (void)
 {
-  bfd_boolean with_md5 = TRUE;
+  bfd_boolean with_md5 = FALSE;
   valueT num;
   char *filename;
   const char * dirname = NULL;
diff --git a/gas/testsuite/gas/elf/dwarf-5-file0.s b/gas/testsuite/gas/elf/dwarf-5-file0.s
index 2792ba8c441..9ac15a052bb 100644
--- a/gas/testsuite/gas/elf/dwarf-5-file0.s
+++ b/gas/testsuite/gas/elf/dwarf-5-file0.s
@@ -8,7 +8,7 @@
 	.file 0 "master directory/master source file"
 	.line 1
 	.text
-	.word 0
+	.octa 0x12345678901234567890123456789012
 
 	.file 1 "secondary directory/secondary source file"
 	.line 2


More information about the Binutils-cvs mailing list