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.
This commit is contained in:
Mark Wielaard
2020-09-07 12:08:07 +01:00
committed by Nick Clifton
parent f49c58803d
commit b0b3ea7e10
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2020-09-07 +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-01 Mark Wielaard <mark@klomp.org> 2020-09-01 Mark Wielaard <mark@klomp.org>
* dwarf2dbg.c (out_debug_abbrev): Use DW_FORM_sec_offset for DWARF * dwarf2dbg.c (out_debug_abbrev): Use DW_FORM_sec_offset for DWARF

View File

@ -1014,7 +1014,7 @@ dwarf2_emit_label (symbolS *label)
char * char *
dwarf2_directive_filename (void) dwarf2_directive_filename (void)
{ {
bfd_boolean with_md5 = TRUE; bfd_boolean with_md5 = FALSE;
valueT num; valueT num;
char *filename; char *filename;
const char * dirname = NULL; const char * dirname = NULL;

View File

@ -8,7 +8,7 @@
.file 0 "master directory/master source file" .file 0 "master directory/master source file"
.line 1 .line 1
.text .text
.word 0 .octa 0x12345678901234567890123456789012
.file 1 "secondary directory/secondary source file" .file 1 "secondary directory/secondary source file"
.line 2 .line 2