Fix section names for MachO.

This commit is contained in:
Nick Lewycky
2020-08-07 17:19:55 -07:00
parent 889c5ba1da
commit 8daeff8bc8
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ pub struct FuncTrampoline {
target_machine: TargetMachine,
}
const FUNCTION_SECTION: &str = "__TEXT__,wasmer_t"; // Needs to be between 1 and 16 chars
const FUNCTION_SECTION: &str = "__TEXT,wasmer_trmpl"; // Needs to be between 1 and 16 chars
impl FuncTrampoline {
pub fn new(target_machine: TargetMachine) -> Self {

View File

@@ -36,7 +36,7 @@ use wasmer_compiler::{
};
use wasmer_vm::{MemoryStyle, ModuleInfo, TableStyle};
const FUNCTION_SECTION: &str = "__TEXT__,wasmer_function";
const FUNCTION_SECTION: &str = "__TEXT,wasmer_function";
fn to_compile_error(err: impl std::error::Error) -> CompileError {
CompileError::Codegen(format!("{}", err))