Bug 5331 – mach format problem

Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2010-12-08T03:38:00Z
Last change time
2010-12-21T00:51:23Z
Assigned to
nobody
Creator
alexibu

Comments

Comment #0 by alexibu — 2010-12-08T03:38:56Z
While compiling (linking) wxd on OSX 10.6 with dmd2 v2.050 /usr/bin/ranlib: object: ../libwxd.a(Accelerator.o) malformed object (LC_SEGMENT command 0 filesize field greater than vmsize field) in dmd/backend/machobj.c : search for segment_cmd.vmsize change : segment_cmd.vmsize = vmaddr; segment_cmd.filesize = foffset - segment_cmd.fileoff; to : segment_cmd.vmsize = vmaddr; segment_cmd.filesize = foffset - segment_cmd.fileoff; if (segment_cmd.filesize > vmaddr) segment_cmd.vmsize = segment_cmd.filesize; and then rebuild dmd2 And the problem is fixed, although I doubt that this is the proper way to fix it.
Comment #1 by clugdbug — 2010-12-21T00:51:23Z