From: Mark Wielaard Date: Mon, 7 Sep 2020 11:08:07 +0000 (+0100) Subject: gas: Make sure to only add an md5 to a .file when requested. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b0b3ea7e10443f211267babcac99ac6677d593ce;p=binutils-gdb.git 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 --git a/gas/ChangeLog b/gas/ChangeLog index 41c92cf9c72..76dfea74af7 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2020-09-07 +2020-08-28 Mark Wielaard + + * 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 * dwarf2dbg.c (out_debug_abbrev): Use DW_FORM_sec_offset for DWARF diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c index 8d19c1d938c..30a98e0fc54 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