-
Notifications
You must be signed in to change notification settings - Fork 19
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
Fix linking and loading for binaries by monitor, and fix TLS bugs #174
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should have some sort of standard code formatting as part of the project. Some of these changes are seem like refactors. It makes it hard to understand changes.
@@ -22,7 +24,7 @@ impl DebugRuntime for ReferenceRuntime { | |||
} | |||
|
|||
fn get_exeid(&self) -> Option<twizzler_runtime_api::LibraryId> { | |||
get_comp_config().root_library_id | |||
Some(twizzler_runtime_api::LibraryId(3)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get that this is the debug library, but is this meant to be here? Are we guaranteed that this is always 3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will address.
|
||
let runtime = twizzler_runtime_api::get_runtime(); | ||
|
||
let (text_handle, data_handle) = runtime | ||
.map_two_objects( | ||
text_id, | ||
text_id.as_u128(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is going to need to change due to #176
257d9b6
to
d080633
Compare
This PR: