Skip to content
Snippets Groups Projects
Unverified Commit 8f83d097 authored by Stefan Lankes's avatar Stefan Lankes
Browse files

activate assembly support for basic function (e.g. memcpy)

- don't rename symbol for newlib
parent d18c9c3a
Branches
Tags
No related merge requests found
[unstable]
build-std = ["core", "alloc"]
build-std-features = ["compiler-builtins-mem"]
build-std-features = ["compiler-builtins-mem", "compiler-builtins-asm"]
[build]
target = "x86_64-unknown-hermit-kernel"
......
......@@ -84,22 +84,6 @@ add_custom_command(
COMMAND
${CMAKE_ELFEDIT} --output-osabi Standalone $<TARGET_FILE:hermit-bootstrap>
# rename basic functions like memcpy to avoid collisions with the user space
COMMAND
${CMAKE_OBJCOPY} --redefine-sym memmove=kernel_memmove $<TARGET_FILE:hermit-bootstrap>
COMMAND
${CMAKE_OBJCOPY} --redefine-sym memcpy=kernel_memcpy $<TARGET_FILE:hermit-bootstrap>
COMMAND
${CMAKE_OBJCOPY} --redefine-sym memset=kernel_memset $<TARGET_FILE:hermit-bootstrap>
COMMAND
${CMAKE_OBJCOPY} --redefine-sym memcmp=kernel_memcmp $<TARGET_FILE:hermit-bootstrap>
COMMAND
${CMAKE_OBJCOPY} --redefine-sym bcmp=kernel_bcmp $<TARGET_FILE:hermit-bootstrap>
# Copy libhermit.a into local prefix directory so that all subsequent
# targets can link against the freshly built version (as opposed to
# linking against the one supplied by the toolchain)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment