|
@@ -5,13 +5,13 @@ package runtime
|
|
import "core:intrinsics"
|
|
import "core:intrinsics"
|
|
|
|
|
|
when ODIN_BUILD_MODE == .Dynamic {
|
|
when ODIN_BUILD_MODE == .Dynamic {
|
|
- @(link_name="_odin_entry_point", linkage="strong", require, link_section=".init")
|
|
|
|
|
|
+ @(link_name="_odin_entry_point", linkage="strong", require/*, link_section=".init"*/)
|
|
_odin_entry_point :: proc "c" () {
|
|
_odin_entry_point :: proc "c" () {
|
|
context = default_context()
|
|
context = default_context()
|
|
#force_no_inline _startup_runtime()
|
|
#force_no_inline _startup_runtime()
|
|
intrinsics.__entry_point()
|
|
intrinsics.__entry_point()
|
|
}
|
|
}
|
|
- @(link_name="_odin_exit_point", linkage="strong", require, link_section=".fini")
|
|
|
|
|
|
+ @(link_name="_odin_exit_point", linkage="strong", require/*, link_section=".fini"*/)
|
|
_odin_exit_point :: proc "c" () {
|
|
_odin_exit_point :: proc "c" () {
|
|
context = default_context()
|
|
context = default_context()
|
|
#force_no_inline _cleanup_runtime()
|
|
#force_no_inline _cleanup_runtime()
|