[Issue 6122] New: OS X Mach-O: indirect symbol table offset is past end of file

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 7 12:04:51 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6122

           Summary: OS X Mach-O: indirect symbol table offset is past end
                    of file
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: robert at octarineparrot.com


--- Comment #0 from Robert Clipsham <robert at octarineparrot.com> 2011-06-07 20:00:15 BST ---
Create a D file, eg:
----
// test.d
void foo(){}
----
Compile:
$ dmd -c test.d -oftest.o
Use otool:
$ otool -I test.o
(that's a capital i if in case of the font being bad).
The output will be something like:
----
test.o:
indirect symbol table offset is past end of file
----
An object file as outputted by gcc or clang does not display the same issue.
After linking the D version does not either. Changing backend/machobj.c:994 to
use foffset -1 fixes the issue and does not seem to cause any side effects,
given my complete lack of knowledge about the file format I thought I better
report this for a proper fix.

-- 
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