https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122208

            Bug ID: 122208
           Summary: Feature request: Include DW_LCNT_MD5
           Product: gcc
           Version: 15.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: christian.morales.vega at gmail dot com
  Target Milestone: ---

gcc doesn't include DW_LCNT_MD5, as clang does

# clang -g -o test_clang test.c
# readelf --debug-dump=rawline test_clang | grep -A2 -F "The File Name Table"
 The File Name Table (offset 0x2e, lines 1, columns 3):
  Entry Dir     MD5                             Name
  0     0 0x2a18cdbcbb6dc5c861272eff8b3818fb    (indirect line string, offset:
0x2): test.c
# gcc --version | head -n1
gcc (GCC) 15.2.1 20250808 (Red Hat 15.2.1-1)
# gcc -g -o test_gcc test.c
# readelf --debug-dump=rawline test_gcc | grep -A2 -F "The File Name Table"
 The File Name Table (offset 0x2c, lines 2, columns 2):
  Entry Dir     Name
  0     0       (indirect line string, offset: 0): test.c

Even if not by default, it would be good to at least get the option to add it
(I have tried with -ggdb, -gdwarf-5, etc. with no luck).

Reply via email to