Bug 20058 – otool fails to dissassemble functions

Status
NEW
Severity
blocker
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Mac OS X
Creation time
2019-07-17T07:38:12Z
Last change time
2024-12-13T19:04:34Z
Assigned to
No Owner
Creator
Jacob Carlborg
Moved to GitHub: dmd#19599 →

Comments

Comment #0 by doob — 2019-07-17T07:38:12Z
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
Comment #1 by robert.schadek — 2024-12-13T19:04:34Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19599 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB