Thread overview
[Issue 10255] New: When creating lib files, dmd no longer splits module into multiple obj files
Jun 03, 2013
Walter Bright
Jun 12, 2013
Rainer Schuetze
Oct 10, 2013
Walter Bright
Oct 11, 2013
Walter Bright
June 03, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10255

           Summary: When creating lib files, dmd no longer splits module
                    into multiple obj files
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: bugzilla@digitalmars.com


--- Comment #0 from Walter Bright <bugzilla@digitalmars.com> 2013-06-03 11:25:29 PDT ---
Given:
----- foo.d --------
void foo1() { }
void foo2() { }
--------------------

and compiling with:

  dmd -lib foo.d
  lib -l foo.lib

will create the .lst file:
-------------------
Publics by name        module
_D3foo12__ModuleInfoZ            foo
_D3foo15__unittest_failFiZv      foo
_D3foo4foo1FZv                   foo
_D3foo4foo2FZv                   foo
_D3foo7__arrayZ                  foo
_D3foo8__assertFiZv              foo


Publics by module
foo
    _D3foo12__ModuleInfoZ             _D3foo15__unittest_failFiZv
    _D3foo4foo1FZv                    _D3foo4foo2FZv
    _D3foo7__arrayZ                   _D3foo8__assertFiZv
---------------------
showing that they are all put in one module. However,

  dmd -c -multiobj foo.d

will correctly create multiple .obj files.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 12, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10255


Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario@gmx.de


--- Comment #1 from Rainer Schuetze <r.sagitario@gmx.de> 2013-06-11 23:58:05 PDT ---
It seems there are actually multiple object files with the same name in the library which are merged in the list file. If you extract a module it only contains some of the listed symbols, not all. Opening the lib in IDA also reveals multiple files with the same name.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 10, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10255



--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2013-10-10 15:48:32 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2651

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 11, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10255



--- Comment #3 from github-bugzilla@puremagic.com 2013-10-10 23:47:12 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/35d857ea2a612bafe3321c230db320c6dbddfd48
fix Issue 10255 - When creating lib files, dmd no longer splits module into
multiple obj files

https://github.com/D-Programming-Language/dmd/commit/0e6d523e9a783eae00c0008db8ed849d7f953887 Merge pull request #2651 from WalterBright/fix10255

fix Issue 10255 - When creating lib files, dmd no longer splits module i...

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 11, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10255



--- Comment #4 from github-bugzilla@puremagic.com 2013-10-11 11:37:06 PDT ---
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/605ba81b50f4227e420937c1893b0521796fdb5b Merge pull request #2651 from WalterBright/fix10255

fix Issue 10255 - When creating lib files, dmd no longer splits module i...

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 11, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10255


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
            Version|D2                          |D1 & D2
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------