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

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

This reverts commit 8f83d097.
parent 4bf3eeaf
No related branches found
No related tags found
No related merge requests found
[unstable]
build-std = ["core", "alloc"]
build-std-features = ["compiler-builtins-mem", "compiler-builtins-asm"]
build-std-features = ["compiler-builtins-mem"]
[build]
target = "x86_64-unknown-hermit-kernel"
......
......@@ -84,6 +84,22 @@ 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