Homebrew ABI: Difference between revisions

No edit summary
Line 54: Line 54:


* 5: [[#Argv]]
* 5: [[#Argv]]
* 6: [[#SyscallAvailableHint]]


==== EndOfList ====
==== EndOfList ====
Line 110: Line 112:
* '''Value[1]:''' Argv string pointer.
* '''Value[1]:''' Argv string pointer.
* '''DefaultBehavior:''' Setting (argc == 0, argv[0] == NULL), or argv parsed in NSO0 fashion.
* '''DefaultBehavior:''' Setting (argc == 0, argv[0] == NULL), or argv parsed in NSO0 fashion.
==== SyscallAvailableHint ====
Homebrew doesn't know if any privileged syscalls are available.
This entry allows loader to give hints about having access to rare syscalls (such as JIT).
* '''Key:''' 6
* '''IsMandatory:''' False
* '''Value[0]:''' Each byte is a rare syscall number that the process has access to. <code>0xFF</code> means byte should be ignored.
* '''Value[1]:''' Same as above.
* '''DefaultBehavior:''' If NSO0, assume kernelhax thus all rare syscalls are allowed. If NRO0, assume all rare syscalls are inaccessible.