sim: callback: expose argv & environ

Pass the existing strings data to the callbacks so that common
libgloss syscalls can be implemented (which we'll do shortly).
This commit is contained in:
Mike Frysinger
2021-11-15 23:04:10 -05:00
parent 54f7a83a62
commit 8cfc9a1895
14 changed files with 79 additions and 10 deletions

View File

@ -178,6 +178,12 @@ struct host_callback_struct
enum bfd_endian target_endian;
/* Program command line options. */
char **argv;
/* Program environment. */
char **envp;
/* Size of an "int" on the target (for syscalls whose ABI uses "int").
This must include padding, and only padding-at-higher-address is
supported. For example, a 64-bit target with 32-bit int:s which