Returns the section with the given section name.
Returns the section structure of the given section in the given segment in image pointed to by the given mach header.
void main() { import core.sys.darwin.mach.getsect; import core.sys.darwin.crt_externs; auto mph = _NSGetMachExecuteHeader(); assert(getsectbynamefromheader(mph, "__TEXT", "__text")); }
the mach header to get the section from
the name of the segment
the name of the section
a pointer to the section structure or null if it doesn't exist
See Implementation
Returns the section with the given section name.
Returns the section structure of the given section in the given segment in image pointed to by the given mach header.