Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with ELF executable argument list #126

Open
MinusPL opened this issue Jun 22, 2022 · 1 comment
Open

Problems with ELF executable argument list #126

MinusPL opened this issue Jun 22, 2022 · 1 comment
Milestone

Comments

@MinusPL
Copy link
Collaborator

MinusPL commented Jun 22, 2022

MicrOS uses ELF executable format and by some testing we found out that list of arguments passed to program has some problems.
There is additional paramater that should not be passed to executable, and this causes checking for any params for programs less intuitive.
Currently program without a single parameter added will have 3 params passed as command line arguments (I'm not sure if I listed them correctly, will edit information after I confirm these):

  • Name of executable
  • Drive this executable is running in
  • Something additional, that I cannot remember right now.
    So if someone passes option let it be -option, then this option in commandline argument list (argv) will be available at 4th place (index 3), instead of 2 (index 1) which is the expected behaviour.

Debugging of process manager creation of new processes and elf format tests and some checking is required to make sure there's no other issue.
Process Manager adds from itself at least one argument for process. This also will need to be adjusted, but is not really part of this issue.

@MinusPL MinusPL changed the title Problems with ELF executables Problems with ELF executable argument list Jun 22, 2022
@MinusPL MinusPL added this to the MicrOS 1.4 milestone Feb 12, 2023
@MinusPL
Copy link
Collaborator Author

MinusPL commented Feb 12, 2023

Assigned to OS Releae 1.4 since it will require some changes in filesystems and partitions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant