Set linker_ptr when using static TLS

This commit is contained in:
Jeremy Soller
2022-09-11 11:11:49 -06:00
parent e7b6252bd3
commit 367be58666
2 changed files with 19 additions and 3 deletions
+3 -1
View File
@@ -83,7 +83,9 @@ impl Linker {
obj.use_count += 1;
return Ok(*id);
} else {
let parent_runpath = &self.objects.get(&root_id).unwrap().runpath.clone();
let parent_runpath = &self.objects.get(&root_id).and_then(|parent| {
parent.runpath.clone()
});
let lib_id = self.next_object_id;
self.load_object(name, parent_runpath, None, true)?;