_start now uses mx_exit() to terminate
This commit is contained in:
@@ -99,7 +99,7 @@ add_custom_target(local-root
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${platform} ${machine})
|
||||
|
||||
framework_add_dependencies(Photon local-root)
|
||||
framework_add_dependencies(Photon local-root crt)
|
||||
|
||||
add_custom_command(TARGET Photon POST_BUILD
|
||||
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/scripts/add-framework-crt.sh
|
||||
|
||||
@@ -8,10 +8,10 @@
|
||||
.type main, @function
|
||||
|
||||
_start:
|
||||
pop %rdi
|
||||
mov %rsp, %rsi
|
||||
andq $-16, %rsp
|
||||
call __crt_init
|
||||
movq %rax, %rdi
|
||||
movq $60, %rax
|
||||
movq $2, %rsi
|
||||
movq $1, %rax
|
||||
syscall
|
||||
|
||||
Reference in New Issue
Block a user