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

Compress symbol table #109

Open
nuta opened this issue Nov 28, 2021 · 3 comments
Open

Compress symbol table #109

nuta opened this issue Nov 28, 2021 · 3 comments

Comments

@nuta
Copy link
Owner

nuta commented Nov 28, 2021

Currently, a symbol table reserves 2MiB space to store symbols (e.g. function names) of the kernel. Because symbols in Rust tend to be lengthy, they are truncated to 55 characters.

This issue aims to implement a simple symbol table compression to:

  • Decrease the kernel image size.
  • Print the whole symbol name (avoid truncating).
@nuta
Copy link
Owner Author

nuta commented Nov 28, 2021

@nuta
Copy link
Owner Author

nuta commented Nov 28, 2021

Ref: Using trie would be better, as used in Mach-O: https://github.com/llvm/llvm-project/blob/main/lld/MachO/ExportTrie.cpp

@michalfita
Copy link
Contributor

Why do you need to keep the symbol table with the running kernel?

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