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

feat: add sys_image_start_address #999

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

mkroening
Copy link
Member

@mkroening mkroening commented Dec 5, 2023

This is useful for anything that has to find addresses of symbols, mainly:

  • Debugging
  • Profiling through instrumentation

Signed-off-by: Martin Kröning <[email protected]>
@mkroening mkroening requested a review from stlankes December 5, 2023 14:50
@stlankes
Copy link
Contributor

stlankes commented Dec 5, 2023

Should we add feature to enable these functions. Normally, the memory layout should be randomized and these function shouldn't exists.

@mkroening
Copy link
Member Author

Maybe? In that case, we would want to add a function to get the randomized offset of individual symbols to still be able to debug, though, right? As far as I understand it, it's not a secret, it's just random.

@stlankes
Copy link
Contributor

stlankes commented Dec 7, 2023

Hm, you are right.

@mkroening mkroening added this pull request to the merge queue Dec 18, 2023
Merged via the queue into hermit-os:main with commit ccdfb6d Dec 18, 2023
39 checks passed
@mkroening mkroening deleted the image-start-address branch December 19, 2023 09:07
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

Successfully merging this pull request may close these issues.

2 participants