Merge pull request #251 from Dennisbonke/master
sysdeps/managarm: Add Scrt1 for x86_64
This commit is contained in:
commit
81d17ab95b
|
@ -101,5 +101,16 @@ if not headers_only
|
|||
install: true,
|
||||
install_dir: get_option('libdir')
|
||||
)
|
||||
|
||||
if host_machine.cpu_family() == 'x86_64'
|
||||
custom_target('Scrt1',
|
||||
build_by_default: true,
|
||||
command: c_compiler.cmd_array() + ['-c', '-o', '@OUTPUT@', '@INPUT@'],
|
||||
input: 'x86_64/crt-src/Scrt1.S',
|
||||
output: 'Scrt1.o',
|
||||
install: true,
|
||||
install_dir: get_option('libdir')
|
||||
)
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
5
sysdeps/managarm/x86_64/crt-src/Scrt1.S
Normal file
5
sysdeps/managarm/x86_64/crt-src/Scrt1.S
Normal file
|
@ -0,0 +1,5 @@
|
|||
.section .text
|
||||
.global _start
|
||||
_start:
|
||||
lea main(%rip), %rdi
|
||||
call __mlibc_entry
|
Loading…
Reference in a new issue