[Issue 5331] New: mach format problem
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 8 03:40:37 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5331
Summary: mach format problem
Product: D
Version: D2
Platform: x86
OS/Version: Mac OS X
Status: NEW
Severity: blocker
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: alexibu at mac.com
--- Comment #0 from Alex Burton <alexibu at mac.com> 2010-12-08 03:38:56 PST ---
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.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list