digitalmars.D.bugs - [Issue 472] New: zero sized _init_* symtab-objects
- d-bugmail puremagic.com Oct 31 2006
- d-bugmail puremagic.com Nov 26 2010
http://d.puremagic.com/issues/show_bug.cgi?id=472 Summary: zero sized _init_* symtab-objects Product: D Version: 0.170 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: thomas-dloop kuehne.cn # struct Hund{ # int a = 1; # long b = 2; # short c = 3; # byte d = 4; # float e = 5; # cfloat f = 6 + 0i; # } # # struct Katze{ # byte g = 89; # } # # struct Maus{ # } dmd -c test.d readelf -s test.o Symbol table '.symtab' contains 20 entries: Num: Value Size Type Bind Vis Ndx Name 13: 00000000 0 OBJECT GLOBAL DEFAULT 6 _init_4test4Hund 14: 00000020 0 OBJECT GLOBAL DEFAULT 6 _init_4test5Katze 15: 00000021 0 OBJECT GLOBAL DEFAULT 6 _init_4test4Maus documentation of Elf32_Sym.st_size (Portable Formats Specification, Version 1.1):Many symbols have associated sizes. For example, a data object’s size is the number of bytes contained in the object. This member holds 0 if the symbol has no size or an unknown size.
_init_* seem to have a known size. --
Oct 31 2006
http://d.puremagic.com/issues/show_bug.cgi?id=472 Andrei Alexandrescu <andrei metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |andrei metalanguage.com AssignedTo|nobody puremagic.com |bugzilla digitalmars.com -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 26 2010








d-bugmail puremagic.com