Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Mach-O
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Application main entry point === A load command starting with type {{code|0x00000028}} is used to specify the address location the application begins at. {|class="wikitable" |+ Load command (Main entry point) |- ! Offset !! Bytes !! Description |- | 0 || 4 || {{code|0x00000028}} (Command type) |- | 4 || 4 || Command size (always 24 bytes) |- | 8 || 8 || Address location |- | 16 || 8 || Stack memory size |} If the segments/sections of the program do not have to be relocated to run, then the main entry point is the exact address location. This is only if the application segment addresses are added to an application base address of zero and the sections did not need any relocations. The main entry point in a Mach-O loader is the program's base address plus the Address location. This is the address at which the CPU is set to begin running machine code instructions. This replaced the old load command {{code|0x00000005}} which varied by CPU type as it stored the state that all the registers should be at before the program starts.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)