You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem?
In a Unix-like (MacOs, Linux, etc.) OS in the case of command line execution of a binary, the arguments of the main function of the binary are set as follows. Argument argv[0] is the name of the binary and the rest of the argv contents are the command-line arguments of the execution. In the emulator, argv[0] contains the first command line argument and argc is decreased by one compared to the argc of the command line execution in the Unix-like OS. This can lead to inconsistencies within the guest binary source code when it uses the arguments of its main function.
Describe the solution you'd like
We should change the emulator to use the convention that Unix-like operating systems use.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem?
In a Unix-like (MacOs, Linux, etc.) OS in the case of command line execution of a binary, the arguments of the main function of the binary are set as follows. Argument
argv[0]
is the name of the binary and the rest of theargv
contents are the command-line arguments of the execution. In the emulator,argv[0]
contains the first command line argument andargc
is decreased by one compared to theargc
of the command line execution in the Unix-like OS. This can lead to inconsistencies within the guest binary source code when it uses the arguments of its main function.Describe the solution you'd like
We should change the emulator to use the convention that Unix-like operating systems use.
The text was updated successfully, but these errors were encountered: