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

Adding relocation tables to executables #382

Open
ddevault opened this issue Aug 13, 2019 · 2 comments
Open

Adding relocation tables to executables #382

ddevault opened this issue Aug 13, 2019 · 2 comments

Comments

@ddevault
Copy link
Member

In-place relocation is convenient for assembly programmers but a more robust solution would be the traditional relocation tables found in other executable formats like ELF. Adding this would be convenient for C programs as well and would help us simplify the compiler.

  1. Add a new KEXC header which points to a relocation table, simply a list of program-relative addresses at which additional program-relative addresses can be found within the code (terminated with a null word)
  2. Update the kernel loader to recognize this and relocate programs when loading them
  3. Update scas to emit one of these
@pixelherodev pixelherodev self-assigned this Aug 13, 2019
@pixelherodev
Copy link

The second stage is to then update all existing packages to use the relocation table and remove in-place relocations from the toolchain entirely.

@pixelherodev
Copy link

This also requires updating the documentation (AFAIK, none is currently out of date enonugh to be problematic, and I'd rather keep it that way).

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

No branches or pull requests

2 participants