Update
commit
4780e5e4933a2497a5aecc4ceabbbb8e82aaf822
Author: Tom de Vries <tdevries@suse.de>
Date: Fri Nov 26 09:59:45 2021 +0100
[gas] Fix file 0 dir with -gdwarf-5
1. Replace i with j in
for (j = 0; i < NUM_MD5_BYTES; ++j)
2. Pass -W to readelf to force CU: in output due to:
if (do_wide || strlen (directory) < 76)
printf (_("CU: %s/%s:\n"), directory, file_table[0].name);
else
printf ("%s:\n", file_table[0].name);
PR gas/28629
* dwarf2dbg.c (out_dir_and_file_list): Fix a typo in commit
4780e5e4933.
* testsuite/gas/elf/dwarf-5-nop-for-line-table.d: Pass -W to
readelf.
files[0].filename = files[1].filename;
files[0].dir = files[1].dir;
if (emit_md5)
- for (j = 0; i < NUM_MD5_BYTES; ++j)
+ for (j = 0; j < NUM_MD5_BYTES; ++j)
files[0].md5[j] = files[1].md5[j];
}
else
#as: --gdwarf-5
#name: Check line table is produced with .nops
-#readelf: -wL
+#readelf: -W -wL
#...
Contents of the .debug_line section: