[Issue 20058] New: otool fails to dissassemble functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 17 07:38:12 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=20058

          Issue ID: 20058
           Summary: otool fails to dissassemble functions
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Mac OS X
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: doob at me.com

Running "otool" with the flags "-Vt" to dissassemble an object file fails to
output functions other than "_main" and "__Dmain". No error occurs, the other
functions are not included in the output. The reason is that otool cannot find
the functions because DMD places them in the "__textcoal_nt" section instead of
the "__text" section where Clang places them.

"obj2asm" which is shipped with DMD can properly dissassemble all functions.

I'm marking this as a blocker since on macOS Catalina it's not possible to run
32 bit applications and "obj2asm" is only available as a 32 bit application,
see [1].

[1] https://issues.dlang.org/show_bug.cgi?id=19664

--


More information about the Digitalmars-d-bugs mailing list