digitalmars.D.bugs - [Issue 23041] New: elf objects contain an unused symbol with no name
- d-bugmail puremagic.com (30/30) Apr 21 2022 https://issues.dlang.org/show_bug.cgi?id=23041
https://issues.dlang.org/show_bug.cgi?id=23041 Issue ID: 23041 Summary: elf objects contain an unused symbol with no name Product: D Version: D2 Hardware: All OS: Linux Status: NEW Keywords: backend Severity: minor Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: duser neet.fi CC: duser neet.fi search for STI_GCC in https://github.com/dlang/dmd/blob/master/src/dmd/backend/elfobj.d the part that adds the symbol name to the string table is commented out, but the rest remain so the symbol is added with an empty name it's harmless but some disassemblers warn about the empty name to see it, compile a file containing "int x;" with "dmd -c test.d", then list the names using "nm test.o": 0000000000000000 t 0000000000000000 R _D4test12__ModuleInfoZ 0000000000000000 B _D4test1xi U _d_dso_registry U __start_minfo U __stop_minfo the first line is the symbol with no name --
Apr 21 2022