[Issue 2436] New: Unexpected OPTLINK termination

Max Samukha samukha at voliacable.com.removethis
Sun Nov 9 08:44:55 PST 2008


On Thu, 06 Nov 2008 11:42:01 +0100, Don <nospam at nospam.com> wrote:

>d-bugmail at puremagic.com wrote:
>> http://d.puremagic.com/issues/show_bug.cgi?id=2436
>> 
>>            Summary: Unexpected OPTLINK termination
>>            Product: D
>>            Version: 2.020
>>           Platform: PC
>>         OS/Version: Windows
>>             Status: NEW
>>           Keywords: link-failure
>>           Severity: normal
>>           Priority: P2
>>          Component: DMD
>>         AssignedTo: bugzilla at digitalmars.com
>>         ReportedBy: samukha at voliacable.com
>> 
>> 
>> optlink fails to link an object file compiled with dmd 2.020 with -g or -gc
>> switch.
>> 
>> CL: link test,,,user32+kernel32/co/noi;
>> 
>> 
>
>I don't think that's an OPTLINK bug -- that obj file seems to be 
>defective.

Then I think it's both dmd and optlink bug. The former is buggy
because it produces invalid object file. The latter cannot gracefully
recover from invalid input, so it's buggy as well.

>And it's a really complicated obj file! Provide the source 
>code for the smallest case which reproduces the problem.
>

Changing/removing seemingly arbitrary stuff makes the error disappear.
I don't have a smaller example yet.

>Is it the same as #1439?


More information about the Digitalmars-d-bugs mailing list