Bug 23041 – elf objects contain an unused symbol with no name

Status
NEW
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2022-04-21T15:01:52Z
Last change time
2024-12-13T19:22:23Z
Keywords
backend
Assigned to
No Owner
Creator
duser
Moved to GitHub: dmd#18100 →

Comments

Comment #0 by duser — 2022-04-21T15:01:52Z
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
Comment #1 by robert.schadek — 2024-12-13T19:22:23Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18100 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB