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

ELF loader & linker to load external binary #11

Open
mmisono opened this issue Dec 9, 2022 · 2 comments
Open

ELF loader & linker to load external binary #11

mmisono opened this issue Dec 9, 2022 · 2 comments
Assignees

Comments

@mmisono
Copy link
Member

mmisono commented Dec 9, 2022

No description provided.

@mmisono mmisono self-assigned this Dec 9, 2022
@mmisono
Copy link
Member Author

mmisono commented Dec 11, 2022

Basic implementation: https://github.com/mmisono/unikraft/tree/loader

Load relocatable x86_64 elf objects into main applications' memory.
Currently supports R_X86_64_PC32, R_X86_64_PLT32, and R_X86_64_GOTPCREL relocations.

TODO:

  • load symbol file
  • support .rodata.str1.1 section
  • support .text.startup section
  • support more relocation types (R_X86_64_GOTPC64, R_X86_64_PLTOFF64, R_X86_64_GOT64)
  • .data section relocation (for global pointer variable, e.g., char *str = "aaaa";)

@mmisono
Copy link
Member Author

mmisono commented Dec 12, 2022

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