Merge pull request #1836 from carlokok/feature/object_file_section
Cranelift: Module data apis should allow specifying the object file section
This commit is contained in:
@@ -211,8 +211,17 @@ impl Backend for FaerieBackend {
|
||||
ref data_decls,
|
||||
ref function_relocs,
|
||||
ref data_relocs,
|
||||
ref custom_segment_section,
|
||||
} = data_ctx.description();
|
||||
|
||||
if let Some((segment, section)) = custom_segment_section {
|
||||
return Err(cranelift_module::ModuleError::Backend(anyhow::anyhow!(
|
||||
"Custom section not supported by cranelift-faerie: `{}:{}`",
|
||||
segment,
|
||||
section
|
||||
)));
|
||||
}
|
||||
|
||||
for &(offset, id) in function_relocs {
|
||||
let to = &namespace.get_function_decl(&function_decls[id]).name;
|
||||
self.artifact
|
||||
|
||||
Reference in New Issue
Block a user